linux-stable/drivers/hid
David Herrmann 4bc19f62c5 HID: Allow drivers to be their own listener
hid-picolcd and hid-wiimote do not allow any of hidinput, hiddev or hidraw
to claim the device but still want to remain on the bus. Hence, if a
driver uses the raw_event callback but no other listener claimed the
device, we still leave it on the bus as the driver handles everything by
itself. It thus becomes its own listener.

Under some circumstances (eg., hidinput_connect() fails and raw_event set)
a device may be left on the bus even though it requires external
listeners. But then if hidinput_connect() fails there are bigger issues
than a device that is left unhandled. So we can safely use this heuristic
to avoid adding another flag for special devices like hid-picolcd and
hid-wiimote.

This also removes the ugly hack from hid-picolcd as this is no longer
required.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2012-07-20 14:32:00 +02:00
..
usbhid Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid 2012-05-22 19:21:48 -07:00
hid-a4tech.c
hid-apple.c Merge branches 'upstream-fixes', 'wacom' and 'waltop' into for-linus 2012-05-22 11:35:11 +02:00
hid-aureal.c HID: Aureal Remote Control Device Driver 2012-04-13 18:15:57 +02:00
hid-axff.c
hid-belkin.c
hid-cherry.c
hid-chicony.c HID: add more hotkeys in Asus AIO keyboards 2012-02-02 10:32:45 +01:00
hid-core.c HID: Allow drivers to be their own listener 2012-07-20 14:32:00 +02:00
hid-cypress.c
hid-debug.c Merge branches 'hyperv', 'multitouch', 'roccat', 'upstream', 'upstream-fixes', 'wacom' and 'wiimote' into for-linus 2012-01-05 15:51:02 +01:00
hid-dr.c
hid-elecom.c
hid-emsff.c Merge branches 'hyperv', 'multitouch', 'roccat', 'upstream', 'upstream-fixes', 'wacom' and 'wiimote' into for-linus 2012-01-05 15:51:02 +01:00
hid-ezkey.c
hid-gaff.c
hid-generic.c HID: Create a common generic driver 2012-05-01 12:54:55 +02:00
hid-gyration.c
hid-holtek-kbd.c HID: Add driver for Holtek based keyboards with broken HID 2012-07-12 12:34:43 +02:00
hid-holtekff.c
hid-hyperv.c HID: hyperv: Set the hid drvdata correctly 2012-05-17 10:01:07 +02:00
hid-ids.h HID: Add driver for Holtek based keyboards with broken HID 2012-07-12 12:34:43 +02:00
hid-input.c HID: Add suport for the brightness control keys on HP keyboards 2012-07-09 16:23:33 +02:00
hid-kensington.c
hid-keytouch.c
hid-kye.c HID: kye: Add support for 3 tablets 2012-02-28 13:37:12 +01:00
hid-lcpower.c
hid-lenovo-tpkbd.c HID: Driver for Lenovo Keyboard with Trackpoint 2012-06-08 10:44:10 +02:00
hid-lg2ff.c
hid-lg3ff.c
hid-lg4ff.c HID: hid-lg4ff: remove unused label in !LEDS_CLASS case 2012-04-23 21:08:15 +02:00
hid-lg.c HID: hid-lg: Allow for custom device-specific properties to be stored in priv drvdata 2012-04-03 04:09:50 +02:00
hid-lg.h HID: lg4ff: Remove sysfs iface before deallocating memory 2012-04-03 04:11:12 +02:00
hid-lgff.c
hid-logitech-dj.c Merge branches 'upstream-fixes', 'wacom' and 'waltop' into for-linus 2012-05-22 11:35:11 +02:00
hid-logitech-dj.h
hid-magicmouse.c HID: hid-magicmouse: Add pointer and buttonpad properties for Magic Trackpad 2012-02-21 11:52:20 +01:00
hid-microsoft.c
hid-monterey.c
hid-multitouch.c HID: hid-multitouch: fix wrong protocol detection 2012-05-10 11:35:43 +02:00
hid-ntrig.c
hid-ortek.c
hid-petalynx.c
hid-picolcd.c HID: Allow drivers to be their own listener 2012-07-20 14:32:00 +02:00
hid-pl.c misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
hid-primax.c
hid-prodikeys.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
hid-roccat-arvo.c
hid-roccat-arvo.h
hid-roccat-common.c Merge branches 'hyperv', 'multitouch', 'roccat', 'upstream', 'upstream-fixes', 'wacom' and 'wiimote' into for-linus 2012-01-05 15:51:02 +01:00
hid-roccat-common.h
hid-roccat-isku.c
hid-roccat-isku.h
hid-roccat-kone.c
hid-roccat-kone.h
hid-roccat-koneplus.c
hid-roccat-koneplus.h
hid-roccat-kovaplus.c
hid-roccat-kovaplus.h
hid-roccat-pyra.c
hid-roccat-pyra.h
hid-roccat.c
hid-saitek.c HID: add new driver for non-compliant Saitek devices 2012-02-22 11:30:17 +01:00
hid-samsung.c
hid-sjoy.c HID: sjoy: Add device ID for Super Joy Box 3 2012-02-21 14:16:36 +01:00
hid-sony.c
hid-speedlink.c
hid-sunplus.c
hid-tivo.c HID: tivo: fix support for bluetooth version of tivo Slide 2012-03-30 15:28:59 +02:00
hid-tmff.c
hid-topseed.c
hid-twinhan.c misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00
hid-uclogic.c HID: uclogic: Add support for UC-Logic TWHL850 2012-05-15 09:50:19 +02:00
hid-wacom.c HID: wacom: Unify speed setting 2012-05-16 21:42:16 +02:00
hid-waltop.c HID: waltop: Extend barrel button fix 2012-05-21 13:21:18 +02:00
hid-wiimote-core.c HID: wiimote: Fix IR data parser 2012-05-09 11:40:51 +02:00
hid-wiimote-debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
hid-wiimote-ext.c HID: wiimote-ext: comment spelling fix 2012-06-05 11:31:26 +02:00
hid-wiimote.h
hid-zpff.c
hid-zydacron.c
hidraw.c HID: hidraw: add proper error handling to raw event reporting 2012-04-27 20:10:09 +02:00
Kconfig HID: Add driver for Holtek based keyboards with broken HID 2012-07-12 12:34:43 +02:00
Makefile HID: Add driver for Holtek based keyboards with broken HID 2012-07-12 12:34:43 +02:00