HID: hidraw: fix power sequence when closing device
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 Sep 2017 01:37:46 +0000 (18:37 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 2 Oct 2017 09:46:31 +0000 (11:46 +0200)
commit814b6d17487fd970f293ee674c90ba267f82415d
treea9b76499e0997e8756143fcfdafefb770d134f0e
parent2a5e597c6bb1b873e473e5f57147e9e5d2755430
HID: hidraw: fix power sequence when closing device

We should not try to bring HID device out of full power state before
calling hid_hw_close(), so that transport driver operates on powered up
device (making this inverse of the opening sequence).

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c