Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1507831 > unrolled thread
| Started by | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| First post | 2016-10-25 01:40 +0200 |
| Last post | 2016-10-25 01:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] Input: psmouse - cleanup Focaltech code Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-10-25 01:40 +0200
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| Date | 2016-10-25 01:40 +0200 |
| Subject | Re: [PATCH] Input: psmouse - cleanup Focaltech code |
| Message-ID | <svX0t-5XK-11@gated-at.bofh.it> |
On Sat, Oct 08, 2016 at 01:38:56PM +0300, Dmitry Tunin wrote:
> 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>
Applied, thank you.
> ---
> drivers/input/mouse/focaltech.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/input/mouse/focaltech.c b/drivers/input/mouse/focaltech.c
> index c8c6a8c..49a56f655 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)
>
> if (set_properties) {
> psmouse->vendor = "FocalTech";
> - psmouse->name = "FocalTech Touchpad";
> + psmouse->name = "Touchpad";
> }
>
> return 0;
> @@ -146,8 +146,8 @@ static void focaltech_report_state(struct psmouse *psmouse)
> }
> input_mt_report_pointer_emulation(dev, true);
>
> - input_report_key(psmouse->dev, BTN_LEFT, state->pressed);
> - input_sync(psmouse->dev);
> + input_report_key(dev, BTN_LEFT, state->pressed);
> + input_sync(dev);
> }
>
> static void focaltech_process_touch_packet(struct psmouse *psmouse,
> --
> 2.7.4
>
--
Dmitry
Back to top | Article view | linux.kernel
csiph-web