HID: uhid: invert report_done and make non-atomic
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Jul 2014 15:14:20 +0000 (17:14 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 25 Aug 2014 08:28:07 +0000 (03:28 -0500)
commit5942b849b124c54002346e699f50db3714e300ed
treef49c56e28025b2b8b8650f60a414069e85e5fa18
parent8cad5b017178bd7fa56d5039478d46964bcd94f7
HID: uhid: invert report_done and make non-atomic

All accesses to @report_done are protected by qlock (or report-contexts).
No need to use an atomic.

While at it, invert the logic and call it "report_running". This is
similar to the uhid->running field and easier to read.

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