diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2014-07-24 16:01:56 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-25 21:53:54 -0400 |
commit | e2114ce1af0dd8c1e077b6d545e346e9ac4d137c (patch) | |
tree | c1b6fbc0217a8616eae5e5c828a557453d50a5df /drivers/input | |
parent | dd3181a70cb73c4f40cfe33ecdd6260ff3fbf8cc (diff) |
Input: wacom - use hid_info instead of plain dev_info
Removes one more need of usb and intf.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
Tested-by: Jason Gerecke <killertofu@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/tablet/wacom_sys.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index b8710594185a..2c1d984edc7f 100644 --- a/drivers/input/tablet/wacom_sys.c +++ b/drivers/input/tablet/wacom_sys.c | |||
@@ -1104,12 +1104,11 @@ static void wacom_wireless_work(struct work_struct *work) | |||
1104 | wacom_unregister_inputs(wacom2); | 1104 | wacom_unregister_inputs(wacom2); |
1105 | 1105 | ||
1106 | if (wacom_wac->pid == 0) { | 1106 | if (wacom_wac->pid == 0) { |
1107 | dev_info(&wacom->intf->dev, "wireless tablet disconnected\n"); | 1107 | hid_info(wacom->hdev, "wireless tablet disconnected\n"); |
1108 | } else { | 1108 | } else { |
1109 | const struct hid_device_id *id = wacom_ids; | 1109 | const struct hid_device_id *id = wacom_ids; |
1110 | 1110 | ||
1111 | dev_info(&wacom->intf->dev, | 1111 | hid_info(wacom->hdev, "wireless tablet connected with PID %x\n", |
1112 | "wireless tablet connected with PID %x\n", | ||
1113 | wacom_wac->pid); | 1112 | wacom_wac->pid); |
1114 | 1113 | ||
1115 | while (id->bus) { | 1114 | while (id->bus) { |
@@ -1120,8 +1119,7 @@ static void wacom_wireless_work(struct work_struct *work) | |||
1120 | } | 1119 | } |
1121 | 1120 | ||
1122 | if (!id->bus) { | 1121 | if (!id->bus) { |
1123 | dev_info(&wacom->intf->dev, | 1122 | hid_info(wacom->hdev, "ignoring unknown PID.\n"); |
1124 | "ignoring unknown PID.\n"); | ||
1125 | return; | 1123 | return; |
1126 | } | 1124 | } |
1127 | 1125 | ||