]> git.karo-electronics.de Git - linux-beck.git/commit
HID: Delay opening HID device
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 18 Sep 2013 17:13:00 +0000 (18:13 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 1 Oct 2013 15:19:08 +0000 (16:19 +0100)
commit1df3a401154add23826d714c808204633b3b1c31
treed229c451092f2a3b507beddb853e8dc83fb7b046
parentde40d1209898884ad5d15a7b5003d13f4f3263d5
HID: Delay opening HID device

Don't call hid_open_device till there is actually an user. This saves
power by not opening underlying transport for HID. Also close device
if there are no active mfd client using HID sensor hub.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/hid/hid-sensor-hub.c
include/linux/hid-sensor-hub.h