summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/psmouse.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-09-11 19:14:09 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-09-13 02:30:44 +0200
commit2c75ada6250990ea859b0b5498cb0b7c2823a9d7 (patch)
treee39a322d8400c85fbebfb658955a240aff4a4049 /drivers/input/mouse/psmouse.h
parentInput: joystick - use ktime for measuring timing (diff)
downloadlinux-2c75ada6250990ea859b0b5498cb0b7c2823a9d7.tar.xz
linux-2c75ada6250990ea859b0b5498cb0b7c2823a9d7.zip
Input: psmouse - add psmouse_matches_pnp_id helper function
The matches_pnp_id function from the synaptics driver is useful for other drivers too. Make it a generic psmouse helper function. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/psmouse.h')
-rw-r--r--drivers/input/mouse/psmouse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/mouse/psmouse.h b/drivers/input/mouse/psmouse.h
index 2f0b39d59a9b..f4cf664c7db3 100644
--- a/drivers/input/mouse/psmouse.h
+++ b/drivers/input/mouse/psmouse.h
@@ -108,6 +108,7 @@ void psmouse_set_resolution(struct psmouse *psmouse, unsigned int resolution);
psmouse_ret_t psmouse_process_byte(struct psmouse *psmouse);
int psmouse_activate(struct psmouse *psmouse);
int psmouse_deactivate(struct psmouse *psmouse);
+bool psmouse_matches_pnp_id(struct psmouse *psmouse, const char * const ids[]);
struct psmouse_attribute {
struct device_attribute dattr;