Skip to content

Commit

Permalink
ACPI / video: remove unnecessary type casting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Rafael J. Wysocki committed Aug 3, 2013
1 parent 915ea7e commit 7c364e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ static int acpi_video_get_brightness(struct backlight_device *bd)
{
unsigned long long cur_level;
int i;
struct acpi_video_device *vd =
(struct acpi_video_device *)bl_get_data(bd);
struct acpi_video_device *vd = bl_get_data(bd);

if (acpi_video_device_lcd_get_level_current(vd, &cur_level, false))
return -EINVAL;
Expand All @@ -255,8 +254,7 @@ static int acpi_video_get_brightness(struct backlight_device *bd)
static int acpi_video_set_brightness(struct backlight_device *bd)
{
int request_level = bd->props.brightness + 2;
struct acpi_video_device *vd =
(struct acpi_video_device *)bl_get_data(bd);
struct acpi_video_device *vd = bl_get_data(bd);

return acpi_video_device_lcd_set_level(vd,
vd->brightness->levels[request_level]);
Expand Down

0 comments on commit 7c364e7

Please sign in to comment.