diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-07-09 07:17:24 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-07-15 20:20:23 -0400 |
commit | 655bfd7aebb12481ab9275284d9500bee5ba3e70 (patch) | |
tree | 54503eb59a03d94db77edca3388d36e3e5315dd8 /drivers/usb/misc | |
parent | fa9133c24c4115523c1381b67fdd74fd864ac0ea (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/usb/misc')
-rw-r--r-- | drivers/usb/misc/appledisplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c index cf70c16f0e3f..4e88553e1666 100644 --- a/drivers/usb/misc/appledisplay.c +++ b/drivers/usb/misc/appledisplay.c | |||
@@ -137,7 +137,7 @@ exit: | |||
137 | 137 | ||
138 | static int appledisplay_bl_update_status(struct backlight_device *bd) | 138 | static int appledisplay_bl_update_status(struct backlight_device *bd) |
139 | { | 139 | { |
140 | struct appledisplay *pdata = class_get_devdata(&bd->class_dev); | 140 | struct appledisplay *pdata = bl_get_data(bd); |
141 | int retval; | 141 | int retval; |
142 | 142 | ||
143 | pdata->msgdata[0] = 0x10; | 143 | pdata->msgdata[0] = 0x10; |
@@ -158,7 +158,7 @@ static int appledisplay_bl_update_status(struct backlight_device *bd) | |||
158 | 158 | ||
159 | static int appledisplay_bl_get_brightness(struct backlight_device *bd) | 159 | static int appledisplay_bl_get_brightness(struct backlight_device *bd) |
160 | { | 160 | { |
161 | struct appledisplay *pdata = class_get_devdata(&bd->class_dev); | 161 | struct appledisplay *pdata = bl_get_data(bd); |
162 | int retval; | 162 | int retval; |
163 | 163 | ||
164 | retval = usb_control_msg( | 164 | retval = usb_control_msg( |