diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-08-03 16:15:21 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-03 16:15:21 -0400 |
commit | 7c364e79aab6246675436bfc8e50e1ffba15dd63 (patch) | |
tree | f7bf99ca575a77ffa984500bd8a89bd3a9bf5f1a /drivers/acpi | |
parent | 915ea7e41439efa7793814cdf4338cb6b003538a (diff) |
ACPI / video: remove unnecessary type casting
Remove type casting from assignments involving void pointers
in two places in drivers/acpi/video.c.
[rjw: Changelog]
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/video.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index fff5bb3ffda8..8681727e3185 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -236,8 +236,7 @@ static int acpi_video_get_brightness(struct backlight_device *bd) | |||
236 | { | 236 | { |
237 | unsigned long long cur_level; | 237 | unsigned long long cur_level; |
238 | int i; | 238 | int i; |
239 | struct acpi_video_device *vd = | 239 | struct acpi_video_device *vd = bl_get_data(bd); |
240 | (struct acpi_video_device *)bl_get_data(bd); | ||
241 | 240 | ||
242 | if (acpi_video_device_lcd_get_level_current(vd, &cur_level, false)) | 241 | if (acpi_video_device_lcd_get_level_current(vd, &cur_level, false)) |
243 | return -EINVAL; | 242 | return -EINVAL; |
@@ -255,8 +254,7 @@ static int acpi_video_get_brightness(struct backlight_device *bd) | |||
255 | static int acpi_video_set_brightness(struct backlight_device *bd) | 254 | static int acpi_video_set_brightness(struct backlight_device *bd) |
256 | { | 255 | { |
257 | int request_level = bd->props.brightness + 2; | 256 | int request_level = bd->props.brightness + 2; |
258 | struct acpi_video_device *vd = | 257 | struct acpi_video_device *vd = bl_get_data(bd); |
259 | (struct acpi_video_device *)bl_get_data(bd); | ||
260 | 258 | ||
261 | return acpi_video_device_lcd_set_level(vd, | 259 | return acpi_video_device_lcd_set_level(vd, |
262 | vd->brightness->levels[request_level]); | 260 | vd->brightness->levels[request_level]); |