]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
backlight: tosa: use bl_get_data instead of dev_get_drvdata
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Feb 2013 02:15:26 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:14 +0000 (16:53 +1100)
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>
drivers/video/backlight/tosa_bl.c

index 588682cc1614569c3283ee1c164e8f3f9ebd8795..2326fa810c5922ef1543671da152cfd13b3f4fc5 100644 (file)
@@ -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;