HID: picoLCD: optimize for inactive debugfs
authorBruno Prémont <bonbons@linux-vserver.org>
Sun, 19 Aug 2012 17:33:02 +0000 (19:33 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 Sep 2012 09:48:07 +0000 (11:48 +0200)
commit63583c64558853f0fe7f8166907417792d184e18
treef77dee08c6f833a64016ec993fe85222e0fd27ee
parentae08e324146c89f1059e9d3c3898d0260a988795
HID: picoLCD: optimize for inactive debugfs

Matthieu CASTET adjusted picolcd_debug_out_report() to only operate when
there is an active listener on debugfs for events.

Do the same on the more important picolcd_debug_raw_event() that is
called in interrupt context as opposed to picolcd_debug_out_report()
which happens in whichever context that sends reports to device.

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-picolcd_debugfs.c