diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-09-13 02:09:33 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-09-17 07:07:34 -0400 |
commit | 4629fd160f7da96b9e6b5abf3f65dbf53642467b (patch) | |
tree | 2f87af468ab3ac9baf179702bc81e9ae91517709 /drivers/hid/hid-lg4ff.c | |
parent | 2575155309947063927b123c56119f36dfda3b50 (diff) |
HID: lg4ff: Remove unnecessary casts of void pointers
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg4ff.c')
-rw-r--r-- | drivers/hid/hid-lg4ff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index f3390ee6105c..da23c6bf1a63 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c | |||
@@ -360,7 +360,7 @@ static void lg4ff_led_set_brightness(struct led_classdev *led_cdev, | |||
360 | { | 360 | { |
361 | struct device *dev = led_cdev->dev->parent; | 361 | struct device *dev = led_cdev->dev->parent; |
362 | struct hid_device *hid = container_of(dev, struct hid_device, dev); | 362 | struct hid_device *hid = container_of(dev, struct hid_device, dev); |
363 | struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid); | 363 | struct lg_drv_data *drv_data = hid_get_drvdata(hid); |
364 | struct lg4ff_device_entry *entry; | 364 | struct lg4ff_device_entry *entry; |
365 | int i, state = 0; | 365 | int i, state = 0; |
366 | 366 | ||
@@ -395,7 +395,7 @@ static enum led_brightness lg4ff_led_get_brightness(struct led_classdev *led_cde | |||
395 | { | 395 | { |
396 | struct device *dev = led_cdev->dev->parent; | 396 | struct device *dev = led_cdev->dev->parent; |
397 | struct hid_device *hid = container_of(dev, struct hid_device, dev); | 397 | struct hid_device *hid = container_of(dev, struct hid_device, dev); |
398 | struct lg_drv_data *drv_data = (struct lg_drv_data *)hid_get_drvdata(hid); | 398 | struct lg_drv_data *drv_data = hid_get_drvdata(hid); |
399 | struct lg4ff_device_entry *entry; | 399 | struct lg4ff_device_entry *entry; |
400 | int i, value = 0; | 400 | int i, value = 0; |
401 | 401 | ||