backlight: Convert from struct class_device to struct device
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 9 Jul 2007 11:17:24 +0000 (12:17 +0100)
committerRichard Purdie <rpurdie@rpsys.net>
Mon, 16 Jul 2007 00:20:23 +0000 (01:20 +0100)
commit655bfd7aebb12481ab9275284d9500bee5ba3e70
tree54503eb59a03d94db77edca3388d36e3e5315dd8
parentfa9133c24c4115523c1381b67fdd74fd864ac0ea
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>
12 files changed:
drivers/acpi/video.c
drivers/usb/misc/appledisplay.c
drivers/video/aty/aty128fb.c
drivers/video/aty/atyfb_base.c
drivers/video/aty/radeon_backlight.c
drivers/video/backlight/backlight.c
drivers/video/backlight/cr_bllcd.c
drivers/video/backlight/lcd.c
drivers/video/nvidia/nv_backlight.c
drivers/video/riva/fbdev.c
include/linux/backlight.h
include/linux/lcd.h