HID: usbhid: replace HID_REPORTED_IDLE with HID_SUSPENDED
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 19 Jul 2012 20:08:45 +0000 (16:08 -0400)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Jul 2012 09:24:24 +0000 (11:24 +0200)
commitf2b5264d4f77328e45d73cd135772b6e88a4951a
treeb23f34186a53e7692e7f950d6237e901dc34c59a
parent93101af31bc5df4486103f6b3ef212aaa5341b09
HID: usbhid: replace HID_REPORTED_IDLE with HID_SUSPENDED

This patch (as1595) improves the usbhid driver by using the
HID_SUSPENDED bitflag to indicate that the device is suspended rather
than using HID_REPORTED_IDLE, which the patch removes.

Since HID_SUSPENDED was not being used for anything, and since the
name "HID_REPORTED_IDLE" doesn't convey much meaning, the end result
is easier to read and understand.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c
drivers/hid/usbhid/usbhid.h