HID: ll_driver: Extend the interface with idle requests
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 27 Feb 2013 15:38:17 +0000 (16:38 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 7 Mar 2013 14:58:17 +0000 (15:58 +0100)
commit9684819b5a29e62acd8265a92d8f3454de9bb71e
tree8b2da81d84a83ffe794f404cc547e6e8f5c7beef
parent777d4bb39a585ff54817815544941c2da70a0bb9
HID: ll_driver: Extend the interface with idle requests

Some drivers send the idle command directly to underlying device,
creating an unwanted dependency on the underlying transport layer.
This patch adds hid_hw_idle() to the interface, thereby removing
usbhid from the lion share of the drivers.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c
include/linux/hid.h