diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-02-21 19:43:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:24 -0500 |
commit | 42109b3cf6b7ba16bcacd8e49684dcbdb5e2b2fb (patch) | |
tree | de7804df2d12808114f1da88dca86143afc28677 /drivers/video/backlight | |
parent | 4d89c3b38927bebd570f466773df57997479a9ab (diff) |
backlight: tosa: use bl_get_data instead of dev_get_drvdata
Use the wrapper function for getting the driver data using
backlight_device instead of using dev_get_drvdata with &bd->dev, so we can
directly pass a struct backlight_device.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/tosa_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/tosa_bl.c b/drivers/video/backlight/tosa_bl.c index 588682cc1614..2326fa810c59 100644 --- a/drivers/video/backlight/tosa_bl.c +++ b/drivers/video/backlight/tosa_bl.c | |||
@@ -54,7 +54,7 @@ static void tosa_bl_set_backlight(struct tosa_bl_data *data, int brightness) | |||
54 | static int tosa_bl_update_status(struct backlight_device *dev) | 54 | static int tosa_bl_update_status(struct backlight_device *dev) |
55 | { | 55 | { |
56 | struct backlight_properties *props = &dev->props; | 56 | struct backlight_properties *props = &dev->props; |
57 | struct tosa_bl_data *data = dev_get_drvdata(&dev->dev); | 57 | struct tosa_bl_data *data = bl_get_data(dev); |
58 | int power = max(props->power, props->fb_blank); | 58 | int power = max(props->power, props->fb_blank); |
59 | int brightness = props->brightness; | 59 | int brightness = props->brightness; |
60 | 60 | ||