Commit 4ec141ad authored by Stefan Achatz's avatar Stefan Achatz Committed by Jiri Kosina

HID: roccat: fix wrong hid_err usage on struct usb_device

Signed-off-by: default avatarStefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 4728f2dc
...@@ -138,7 +138,7 @@ static int kone_check_write(struct usb_device *usb_dev) ...@@ -138,7 +138,7 @@ static int kone_check_write(struct usb_device *usb_dev)
return 0; return 0;
/* unknown answer */ /* unknown answer */
hid_err(usb_dev, "got retval %d when checking write\n", data); dev_err(&usb_dev->dev, "got retval %d when checking write\n", data);
return -EIO; return -EIO;
} }
...@@ -503,7 +503,7 @@ static ssize_t kone_sysfs_set_tcu(struct device *dev, ...@@ -503,7 +503,7 @@ static ssize_t kone_sysfs_set_tcu(struct device *dev,
retval = kone_set_settings(usb_dev, &kone->settings); retval = kone_set_settings(usb_dev, &kone->settings);
if (retval) { if (retval) {
hid_err(usb_dev, "couldn't set tcu state\n"); dev_err(&usb_dev->dev, "couldn't set tcu state\n");
/* /*
* try to reread valid settings into buffer overwriting * try to reread valid settings into buffer overwriting
* first error code * first error code
...@@ -519,7 +519,7 @@ static ssize_t kone_sysfs_set_tcu(struct device *dev, ...@@ -519,7 +519,7 @@ static ssize_t kone_sysfs_set_tcu(struct device *dev,
retval = size; retval = size;
exit_no_settings: exit_no_settings:
hid_err(usb_dev, "couldn't read settings\n"); dev_err(&usb_dev->dev, "couldn't read settings\n");
exit_unlock: exit_unlock:
mutex_unlock(&kone->kone_lock); mutex_unlock(&kone->kone_lock);
return retval; return retval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment