diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-02-21 16:43:49 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 17:22:24 -0800 |
commit | 42109b3cf6b7ba16bcacd8e49684dcbdb5e2b2fb (patch) | |
tree | de7804df2d12808114f1da88dca86143afc28677 /drivers/video | |
parent | 4d89c3b38927bebd570f466773df57997479a9ab (diff) | |
download | linux-42109b3cf6b7ba16bcacd8e49684dcbdb5e2b2fb.tar.gz linux-42109b3cf6b7ba16bcacd8e49684dcbdb5e2b2fb.tar.bz2 linux-42109b3cf6b7ba16bcacd8e49684dcbdb5e2b2fb.zip |
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')
-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) static int tosa_bl_update_status(struct backlight_device *dev) { struct backlight_properties *props = &dev->props; - struct tosa_bl_data *data = dev_get_drvdata(&dev->dev); + struct tosa_bl_data *data = bl_get_data(dev); int power = max(props->power, props->fb_blank); int brightness = props->brightness; |