Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1332870 > unrolled thread

[PATCH 6/6] HID: wacom: close the wireless receiver on remove()

Started byBenjamin Tissoires <benjamin.tissoires@redhat.com>
First post2016-02-12 17:30 +0100
Last post2016-02-12 17:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 6/6] HID: wacom: close the wireless receiver on remove() Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-02-12 17:30 +0100

#1332870 — [PATCH 6/6] HID: wacom: close the wireless receiver on remove()

FromBenjamin Tissoires <benjamin.tissoires@redhat.com>
Date2016-02-12 17:30 +0100
Subject[PATCH 6/6] HID: wacom: close the wireless receiver on remove()
Message-ID<r1oLv-Wf-5@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web