diff options
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r-- | drivers/acpi/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 5f014d3764c8..04ea697f72bf 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -284,7 +284,7 @@ static int acpi_video_get_brightness(struct backlight_device *bd) | |||
284 | { | 284 | { |
285 | unsigned long cur_level; | 285 | unsigned long cur_level; |
286 | struct acpi_video_device *vd = | 286 | struct acpi_video_device *vd = |
287 | (struct acpi_video_device *)class_get_devdata(&bd->class_dev); | 287 | (struct acpi_video_device *)bl_get_data(bd); |
288 | acpi_video_device_lcd_get_level_current(vd, &cur_level); | 288 | acpi_video_device_lcd_get_level_current(vd, &cur_level); |
289 | return (int) cur_level; | 289 | return (int) cur_level; |
290 | } | 290 | } |
@@ -293,7 +293,7 @@ static int acpi_video_set_brightness(struct backlight_device *bd) | |||
293 | { | 293 | { |
294 | int request_level = bd->props.brightness; | 294 | int request_level = bd->props.brightness; |
295 | struct acpi_video_device *vd = | 295 | struct acpi_video_device *vd = |
296 | (struct acpi_video_device *)class_get_devdata(&bd->class_dev); | 296 | (struct acpi_video_device *)bl_get_data(bd); |
297 | acpi_video_device_lcd_set_level(vd, request_level); | 297 | acpi_video_device_lcd_set_level(vd, request_level); |
298 | return 0; | 298 | return 0; |
299 | } | 299 | } |