Input: psmouse - rename ps2pp_init() to ps2pp_detect()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 Dec 2015 19:02:39 +0000 (11:02 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 17 Dec 2015 23:24:37 +0000 (15:24 -0800)
This makes Logitech PS2++ protocol implementation consistent with
the naming in other protocols. Also mark the stub as "static inline"

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Marcin Sochacki <msochacki+kernel@gmail.com>
Tested-by: Till <till2.schaefer@uni-dortmund.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/logips2pp.c
drivers/input/mouse/logips2pp.h
drivers/input/mouse/psmouse-base.c

index 136e222e2a16426b1ac4512348255074577c510e..422da1cd9e763839381267f0c3395100cf9df648 100644 (file)
@@ -325,7 +325,7 @@ static void ps2pp_set_model_properties(struct psmouse *psmouse,
  * that support it.
  */
 
-int ps2pp_init(struct psmouse *psmouse, bool set_properties)
+int ps2pp_detect(struct psmouse *psmouse, bool set_properties)
 {
        struct ps2dev *ps2dev = &psmouse->ps2dev;
        unsigned char param[4];
index 0c186f0282d973461f0c90dfbb12f40eabc0b85f..bf629453e0953c475332f46776883ca91016abc8 100644 (file)
@@ -12,9 +12,9 @@
 #define _LOGIPS2PP_H
 
 #ifdef CONFIG_MOUSE_PS2_LOGIPS2PP
-int ps2pp_init(struct psmouse *psmouse, bool set_properties);
+int ps2pp_detect(struct psmouse *psmouse, bool set_properties);
 #else
-inline int ps2pp_init(struct psmouse *psmouse, bool set_properties)
+static inline int ps2pp_detect(struct psmouse *psmouse, bool set_properties)
 {
        return -ENOSYS;
 }
index f12df771eeb21f167804ee2dbb217cce3acde445..b9e4ee34c132df58525a1969346520325c6a2490 100644 (file)
@@ -699,7 +699,7 @@ static const struct psmouse_protocol psmouse_protocols[] = {
                .type           = PSMOUSE_PS2PP,
                .name           = "PS2++",
                .alias          = "logitech",
-               .detect         = ps2pp_init,
+               .detect         = ps2pp_detect,
        },
 #endif
        {