Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1332870
| From | Benjamin Tissoires <benjamin.tissoires@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 6/6] HID: wacom: close the wireless receiver on remove() |
| Date | 2016-02-12 17:30 +0100 |
| Message-ID | <r1oLv-Wf-5@gated-at.bofh.it> (permalink) |
| References | <r1oLv-Wf-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
rmmod/insmod the wacom.ko module does not work for the receiver because
it was not previously closed. Now, we can hack with the wireless receiver
without having to unplug/replug it.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
---
drivers/hid/wacom_sys.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 9a41035..68a5609 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -1853,6 +1853,11 @@ fail_parse:
static void wacom_remove(struct hid_device *hdev)
{
struct wacom *wacom = hid_get_drvdata(hdev);
+ struct wacom_wac *wacom_wac = &wacom->wacom_wac;
+ struct wacom_features *features = &wacom_wac->features;
+
+ if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR)
+ hid_hw_close(hdev);
hid_hw_stop(hdev);
--
2.5.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 6/6] HID: wacom: close the wireless receiver on remove() Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-02-12 17:30 +0100
csiph-web