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


Groups > linux.kernel > #1332878

[PATCH 5/6] HID: wacom: cleanup input devices

From Benjamin Tissoires <benjamin.tissoires@redhat.com>
Newsgroups linux.kernel
Subject [PATCH 5/6] HID: wacom: cleanup input devices
Date 2016-02-12 17:30 +0100
Message-ID <r1oLw-Wf-27@gated-at.bofh.it> (permalink)
References <r1oLv-Wf-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Just some cleaning up when the input devices are unregistered.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
---
 drivers/hid/wacom_sys.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 5cb8528..9a41035 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -1357,6 +1357,9 @@ static void wacom_clean_inputs(struct wacom *wacom)
 	wacom->wacom_wac.pen_input = NULL;
 	wacom->wacom_wac.touch_input = NULL;
 	wacom->wacom_wac.pad_input = NULL;
+	wacom->wacom_wac.pen_registered = false;
+	wacom->wacom_wac.touch_registered = false;
+	wacom->wacom_wac.pad_registered = false;
 	wacom_destroy_leds(wacom);
 }
 
-- 
2.5.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] HID: wacom: cleanup Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-02-12 17:30 +0100
  [PATCH 5/6] HID: wacom: cleanup input devices Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-02-12 17:30 +0100
  Re: [PATCH 0/6] HID: wacom: cleanup Jiri Kosina <jikos@kernel.org> - 2016-02-16 18:20 +0100
  Re: [PATCH 0/6] HID: wacom: cleanup Jiri Kosina <jikos@kernel.org> - 2016-02-16 20:50 +0100

csiph-web