Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/dtor/input

Pull input subsystem updates from Dmitry Torokhov.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: psmouse - cleanup Focaltech code
  Input: i8042 - add XMG C504 to keyboard reset table
  • Loading branch information
torvalds committed Nov 5, 2016
2 parents 03daa36 + 324ae09 commit f29b909
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/mouse/focaltech.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
7 changes: 7 additions & 0 deletions drivers/input/serio/i8042-x86ia64io.h
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,13 @@ static const struct dmi_system_id __initconst i8042_dmi_kbdreset_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "P34"),
},
},
{
/* Schenker XMG C504 - Elantech touchpad */
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "XMG"),
DMI_MATCH(DMI_PRODUCT_NAME, "C504"),
},
},
{ }
};

Expand Down

0 comments on commit f29b909

Please sign in to comment.