diff options
| author | Dmitry Tunin <hanipouspilot@gmail.com> | 2016-10-24 19:35:09 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-10-24 20:19:25 -0400 |
| commit | 324ae0958cab5ccdf2851ef0348ba1cb8ad4e34a (patch) | |
| tree | 78452f4b538591641fb291de1572fc85fe677a95 /drivers/input | |
| parent | da25311c7ca8b0254a686fc0d597075b9aa3b683 (diff) | |
Input: psmouse - cleanup Focaltech code
psmouse->name "Focaltech Touchpad" is an overkill. In xinput it is too long
as "FocaltechPS/2 Focaltech Focaltech Touchpad"
In focaltech_report_state() pointer to psmouse->dev is already stored as
*dev
Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/mouse/focaltech.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/mouse/focaltech.c b/drivers/input/mouse/focaltech.c index 54eceb30ede5..a7d39689bbfb 100644 --- a/drivers/input/mouse/focaltech.c +++ b/drivers/input/mouse/focaltech.c | |||
| @@ -43,7 +43,7 @@ int focaltech_detect(struct psmouse *psmouse, bool set_properties) | |||
| 43 | 43 | ||
| 44 | if (set_properties) { | 44 | if (set_properties) { |
| 45 | psmouse->vendor = "FocalTech"; | 45 | psmouse->vendor = "FocalTech"; |
| 46 | psmouse->name = "FocalTech Touchpad"; | 46 | psmouse->name = "Touchpad"; |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | return 0; | 49 | return 0; |
| @@ -146,8 +146,8 @@ static void focaltech_report_state(struct psmouse *psmouse) | |||
| 146 | } | 146 | } |
| 147 | input_mt_report_pointer_emulation(dev, true); | 147 | input_mt_report_pointer_emulation(dev, true); |
| 148 | 148 | ||
| 149 | input_report_key(psmouse->dev, BTN_LEFT, state->pressed); | 149 | input_report_key(dev, BTN_LEFT, state->pressed); |
| 150 | input_sync(psmouse->dev); | 150 | input_sync(dev); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | static void focaltech_process_touch_packet(struct psmouse *psmouse, | 153 | static void focaltech_process_touch_packet(struct psmouse *psmouse, |
