HID: uhid: forward open/close events to user-space
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 10 Jun 2012 13:16:22 +0000 (15:16 +0200)
committerColin Cross <ccross@android.com>
Thu, 16 Aug 2012 19:44:28 +0000 (12:44 -0700)
commite458139e9e88d4cf9450842c2f21b4e5451faba0
tree2daa5002f364da8d314b284fb669c4c5317bbe50
parent245fd8c6b76e8b082f6d233886d35c3e27e89d53
HID: uhid: forward open/close events to user-space

HID core notifies us with *_open/*_close callbacks when there is an actual
user of our device. We forward these to user-space so they can react on
this. This allows user-space to skip I/O unless they receive an OPEN
event. When they receive a CLOSE event they can stop I/O again to save
energy.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/uhid.c
include/linux/uhid.h