aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/wacom_sys.c')
-rw-r--r--drivers/hid/wacom_sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 4b7feb3022c1..a90de9b5d489 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -1130,7 +1130,7 @@ static ssize_t wacom_show_remote_mode(struct kobject *kobj,
1130 struct kobj_attribute *kattr, 1130 struct kobj_attribute *kattr,
1131 char *buf, int index) 1131 char *buf, int index)
1132{ 1132{
1133 struct device *dev = container_of(kobj->parent, struct device, kobj); 1133 struct device *dev = kobj_to_dev(kobj->parent);
1134 struct hid_device *hdev = to_hid_device(dev); 1134 struct hid_device *hdev = to_hid_device(dev);
1135 struct wacom *wacom = hid_get_drvdata(hdev); 1135 struct wacom *wacom = hid_get_drvdata(hdev);
1136 u8 mode; 1136 u8 mode;
@@ -1241,7 +1241,7 @@ static ssize_t wacom_store_unpair_remote(struct kobject *kobj,
1241 const char *buf, size_t count) 1241 const char *buf, size_t count)
1242{ 1242{
1243 unsigned char selector = 0; 1243 unsigned char selector = 0;
1244 struct device *dev = container_of(kobj->parent, struct device, kobj); 1244 struct device *dev = kobj_to_dev(kobj->parent);
1245 struct hid_device *hdev = to_hid_device(dev); 1245 struct hid_device *hdev = to_hid_device(dev);
1246 struct wacom *wacom = hid_get_drvdata(hdev); 1246 struct wacom *wacom = hid_get_drvdata(hdev);
1247 int err; 1247 int err;