aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-06-10 15:16:22 +0200
committerColin Cross <ccross@android.com>2012-08-16 12:44:28 -0700
commite458139e9e88d4cf9450842c2f21b4e5451faba0 (patch)
tree2daa5002f364da8d314b284fb669c4c5317bbe50 /include
parent245fd8c6b76e8b082f6d233886d35c3e27e89d53 (diff)
downloadkernel_samsung_crespo-e458139e9e88d4cf9450842c2f21b4e5451faba0.zip
kernel_samsung_crespo-e458139e9e88d4cf9450842c2f21b4e5451faba0.tar.gz
kernel_samsung_crespo-e458139e9e88d4cf9450842c2f21b4e5451faba0.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/uhid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/uhid.h b/include/linux/uhid.h
index f8ce6f7..351650b 100644
--- a/include/linux/uhid.h
+++ b/include/linux/uhid.h
@@ -27,6 +27,8 @@ enum uhid_event_type {
UHID_DESTROY,
UHID_START,
UHID_STOP,
+ UHID_OPEN,
+ UHID_CLOSE,
UHID_INPUT,
};