]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Input: psmouse - tweak PSMOUSE_DEFINE_ATTR to support raw set callbacks
authorAndres Salomon <dilinger@debian.org>
Tue, 16 Sep 2008 16:30:34 +0000 (12:30 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 21 Sep 2008 22:28:47 +0000 (18:28 -0400)
commit68d482214bb0eaac138ace329e72390d6c8d44ff
tree905c8b976b8b0829b8b49072af04c0025f2627a3
parent8bf020ee9650899a45295d0c3a0744d4d1bf2801
Input: psmouse - tweak PSMOUSE_DEFINE_ATTR to support raw set callbacks

We want to support attr->set callbacks that may need psmouse->state to
not be updated, or may want to manually deal w/ enabling and disabling
the device.  To do that, we create __PSMOUSE_DEFINE_ATTR which enables
us to set a 'protect' argument specifying whether or not the set
callback should be protected with psmouse_disable and state setting.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/psmouse.h