Input: wacom - use hid_info instead of plain dev_info
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 24 Jul 2014 20:01:56 +0000 (13:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 26 Jul 2014 01:53:54 +0000 (18:53 -0700)
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>
drivers/input/tablet/wacom_sys.c

index b8710594185a3ae5701dd323c8815731711a672c..2c1d984edc7f4d80a0fea7e410df765f43340ea0 100644 (file)
@@ -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;
                }