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>
This commit is contained in:
parent
dd3181a70c
commit
e2114ce1af
@ -1104,12 +1104,11 @@ static void wacom_wireless_work(struct work_struct *work)
|
|||||||
wacom_unregister_inputs(wacom2);
|
wacom_unregister_inputs(wacom2);
|
||||||
|
|
||||||
if (wacom_wac->pid == 0) {
|
if (wacom_wac->pid == 0) {
|
||||||
dev_info(&wacom->intf->dev, "wireless tablet disconnected\n");
|
hid_info(wacom->hdev, "wireless tablet disconnected\n");
|
||||||
} else {
|
} else {
|
||||||
const struct hid_device_id *id = wacom_ids;
|
const struct hid_device_id *id = wacom_ids;
|
||||||
|
|
||||||
dev_info(&wacom->intf->dev,
|
hid_info(wacom->hdev, "wireless tablet connected with PID %x\n",
|
||||||
"wireless tablet connected with PID %x\n",
|
|
||||||
wacom_wac->pid);
|
wacom_wac->pid);
|
||||||
|
|
||||||
while (id->bus) {
|
while (id->bus) {
|
||||||
@ -1120,8 +1119,7 @@ static void wacom_wireless_work(struct work_struct *work)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!id->bus) {
|
if (!id->bus) {
|
||||||
dev_info(&wacom->intf->dev,
|
hid_info(wacom->hdev, "ignoring unknown PID.\n");
|
||||||
"ignoring unknown PID.\n");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user