diff options
Diffstat (limited to 'drivers/usb')
-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 b09c83568c1a..1cb56f2d5c84 100644 --- a/drivers/usb/misc/appledisplay.c +++ b/drivers/usb/misc/appledisplay.c | |||
@@ -138,7 +138,7 @@ exit: | |||
138 | 138 | ||
139 | static int appledisplay_bl_update_status(struct backlight_device *bd) | 139 | static int appledisplay_bl_update_status(struct backlight_device *bd) |
140 | { | 140 | { |
141 | struct appledisplay *pdata = class_get_devdata(&bd->class_dev); | 141 | struct appledisplay *pdata = bl_get_data(bd); |
142 | int retval; | 142 | int retval; |
143 | 143 | ||
144 | pdata->msgdata[0] = 0x10; | 144 | pdata->msgdata[0] = 0x10; |
@@ -159,7 +159,7 @@ static int appledisplay_bl_update_status(struct backlight_device *bd) | |||
159 | 159 | ||
160 | static int appledisplay_bl_get_brightness(struct backlight_device *bd) | 160 | static int appledisplay_bl_get_brightness(struct backlight_device *bd) |
161 | { | 161 | { |
162 | struct appledisplay *pdata = class_get_devdata(&bd->class_dev); | 162 | struct appledisplay *pdata = bl_get_data(bd); |
163 | int retval; | 163 | int retval; |
164 | 164 | ||
165 | retval = usb_control_msg( | 165 | retval = usb_control_msg( |