diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2014-07-24 20:01:56 (GMT) |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-26 01:53:54 (GMT) |
commit | e2114ce1af0dd8c1e077b6d545e346e9ac4d137c (patch) | |
tree | c1b6fbc0217a8616eae5e5c828a557453d50a5df | |
parent | dd3181a70cb73c4f40cfe33ecdd6260ff3fbf8cc (diff) | |
download | linux-e2114ce1af0dd8c1e077b6d545e346e9ac4d137c.tar.xz |
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>
-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 b871059..2c1d984 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) wacom_unregister_inputs(wacom2); if (wacom_wac->pid == 0) { - dev_info(&wacom->intf->dev, "wireless tablet disconnected\n"); + hid_info(wacom->hdev, "wireless tablet disconnected\n"); } else { const struct hid_device_id *id = wacom_ids; - dev_info(&wacom->intf->dev, - "wireless tablet connected with PID %x\n", + hid_info(wacom->hdev, "wireless tablet connected with PID %x\n", wacom_wac->pid); while (id->bus) { @@ -1120,8 +1119,7 @@ static void wacom_wireless_work(struct work_struct *work) } if (!id->bus) { - dev_info(&wacom->intf->dev, - "ignoring unknown PID.\n"); + hid_info(wacom->hdev, "ignoring unknown PID.\n"); return; } |