diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-06-10 15:16:22 +0200 |
---|---|---|
committer | Humberto Borba <humberos@gmail.com> | 2013-01-12 21:05:14 -0200 |
commit | ab8add2dc0e7d2d164ff54e2b3daec2801615607 (patch) | |
tree | 70d803dc64ee098ea90717ebd3cbd8ee58e86f3f /include/linux | |
parent | 4517caad80e5d9b3111e98c745ed5a574125eb1b (diff) | |
download | kernel_samsung_smdk4412-ab8add2dc0e7d2d164ff54e2b3daec2801615607.zip kernel_samsung_smdk4412-ab8add2dc0e7d2d164ff54e2b3daec2801615607.tar.gz kernel_samsung_smdk4412-ab8add2dc0e7d2d164ff54e2b3daec2801615607.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/linux')
-rw-r--r-- | include/linux/uhid.h | 2 |
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, }; |