HID: wiimote: keep HID device open
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 5 May 2013 21:12:47 +0000 (23:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Jun 2013 09:06:59 +0000 (11:06 +0200)
commit5682b1a8690cfae5ad3bd40a123510fd4014066d
treece50800b45fe858ea45d3d9aab8780c8e3405b07
parent139385383267de547f5dbdbd2049d3a9c996c85e
HID: wiimote: keep HID device open

We need constant I/O to keep the state up-to-date and not miss any
packets. Hence, call hid_hw_open() during setup and hid_hw_close() during
destruction.

These are no-ops for Bluetooth HIDP, but lets be safe.

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