aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-07-09 07:17:24 -0400
committerRichard Purdie <rpurdie@rpsys.net>2007-07-15 20:20:23 -0400
commit655bfd7aebb12481ab9275284d9500bee5ba3e70 (patch)
tree54503eb59a03d94db77edca3388d36e3e5315dd8 /drivers/acpi
parentfa9133c24c4115523c1381b67fdd74fd864ac0ea (diff)
backlight: Convert from struct class_device to struct device
Convert the backlight and LCD classes from struct class_device to struct device since class_device is scheduled for removal. One nasty API break is the backlight power attribute has had to be renamed to bl_power and the LCD power attribute has had to be renamed to lcd_power since the original names clash with the core. I can't see a way around this. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 00d25b347255..7fd672af33ba 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -278,7 +278,7 @@ static int acpi_video_get_brightness(struct backlight_device *bd)
278{ 278{
279 unsigned long cur_level; 279 unsigned long cur_level;
280 struct acpi_video_device *vd = 280 struct acpi_video_device *vd =
281 (struct acpi_video_device *)class_get_devdata(&bd->class_dev); 281 (struct acpi_video_device *)bl_get_data(bd);
282 acpi_video_device_lcd_get_level_current(vd, &cur_level); 282 acpi_video_device_lcd_get_level_current(vd, &cur_level);
283 return (int) cur_level; 283 return (int) cur_level;
284} 284}
@@ -287,7 +287,7 @@ static int acpi_video_set_brightness(struct backlight_device *bd)
287{ 287{
288 int request_level = bd->props.brightness; 288 int request_level = bd->props.brightness;
289 struct acpi_video_device *vd = 289 struct acpi_video_device *vd =
290 (struct acpi_video_device *)class_get_devdata(&bd->class_dev); 290 (struct acpi_video_device *)bl_get_data(bd);
291 acpi_video_device_lcd_set_level(vd, request_level); 291 acpi_video_device_lcd_set_level(vd, request_level);
292 return 0; 292 return 0;
293} 293}