Skip to content

Commit

Permalink
Input: wacom - use hid_info instead of plain dev_info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Tissoires authored and Dmitry Torokhov committed Jul 26, 2014
1 parent dd3181a commit e2114ce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/input/tablet/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}

Expand Down

0 comments on commit e2114ce

Please sign in to comment.