HID: wacom: Set input bits before registration
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 8 Oct 2011 21:20:17 +0000 (23:20 +0200)
committerJiri Kosina <jkosina@suse.cz>
Sat, 8 Oct 2011 21:20:17 +0000 (23:20 +0200)
commit3797ef6b6bc041755318917855d63879679c6dd9
tree99ed2c53cd3caa16a131309fc222f93b82a0bf94
parentf554ff80339b4005856e6a86454d6ea2bb962ee5
HID: wacom: Set input bits before registration

We shouldn't change the event flags of input devices after they get registered.
Otherwise, udev will not get notified of these flags and cannot setup the
devices properly.
This fixes the probing to set the input event flags on the input_mapped callback
instead of the probe function.

Reported-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Tested-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wacom.c