| commit | 8fba798ed01778c5f1e82153ae6ecc0172bc1ac2 | [log] [tgz] |
|---|---|---|
| author | David Herrmann <dh.herrmann@googlemail.com> | Sun Jun 10 15:16:22 2012 +0200 |
| committer | Iliyan Malchev <malchev@google.com> | Wed Sep 05 22:34:49 2012 -0700 |
| tree | cefad327cfaa19b8cd229ad3cf00c1d1053004b4 | |
| parent | d11acf20aad515a8097fac17afced8278a2ea9dd [diff] |
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>