input: psmouse: Use same format for secondary devices as for primary
Subsystems (2)
PATCH 1/1 input: psmouse: Use same format for secondary devices as for primary
This patch changes name of secondary psmouse devices to mach format of primary device. Format of primary device is "protocol vendor name" and is set by function psmouse_switch_protocol() in file psmouse-base.c.
Signed-off-by Pali Rohár <[email protected]>
--- drivers/input/mouse/elantech.c | 2 +- drivers/input/mouse/lifebook.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/input/mouse/elantech.c +1 -1
@@ -1714,7 +1714,7 @@ int elantech_init(struct psmouse *psmouse)snprintf (etd->tp_phys,sizeof (etd->tp_phys),"%s/input1" , psmouse->ps2dev.serio->phys); tp_dev->phys = etd->tp_phys; - tp_dev->name ="Elantech PS/2 TrackPoint" ; + tp_dev->name ="ETPS/2 Elantech TrackPoint" ; tp_dev->id.bustype =BUS_I8042 ; tp_dev->id.vendor =0x0002 ; tp_dev->id.product =PSMOUSE_ELANTECH ;
drivers/input/mouse/lifebook.c +1 -1
@@ -287,7 +287,7 @@ static int lifebook_create_relative_device(struct psmouse *psmouse) "%s/input1", psmouse->ps2dev.serio->phys); dev2->phys = priv->phys; - dev2->name ="PS/2 Touchpad" ; + dev2->name ="LBPS/2 Fujitsu Lifebook Touchpad" ; dev2->id.bustype =BUS_I8042 ; dev2->id.vendor =0x0002 ; dev2->id.product =PSMOUSE_LIFEBOOK ;
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Pali Rohár
This patch changes name of secondary psmouse devices to mach format of primary device. Format of primary device is "protocol vendor name" and is set by function
psmouse_switch_protocol()in filepsmouse-base.c.Signed-off-by Pali Rohár <[email protected]>
Applied, thank you.
Quoted 34 lines
--- drivers/input/mouse/elantech.c | 2 +- drivers/input/mouse/lifebook.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/input/mouse/elantech.c +1
-1@@ -1714,7 +1714,7 @@ int elantech_init(struct psmouse *psmouse)snprintf (etd->tp_phys,sizeof (etd->tp_phys),"%s/input1" , psmouse->ps2dev.serio->phys); tp_dev->phys = etd->tp_phys; - tp_dev->name ="Elantech PS/2 TrackPoint" ; + tp_dev->name ="ETPS/2 Elantech TrackPoint" ; tp_dev->id.bustype =BUS_I8042 ; tp_dev->id.vendor =0x0002 ; tp_dev->id.product =PSMOUSE_ELANTECH ;drivers/input/mouse/lifebook.c +1
-1@@ -287,7 +287,7 @@ static int lifebook_create_relative_device(struct psmouse *psmouse) "%s/input1", psmouse->ps2dev.serio->phys); dev2->phys = priv->phys; - dev2->name ="PS/2 Touchpad" ; + dev2->name ="LBPS/2 Fujitsu Lifebook Touchpad" ; dev2->id.bustype =BUS_I8042 ; dev2->id.vendor =0x0002 ; dev2->id.product =PSMOUSE_LIFEBOOK ;Signature · 1 line
1.7.9.5
Signature · 5 lines
Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html