From: Jingoo Han Date: Fri, 22 Feb 2013 00:43:49 +0000 (-0800) Subject: backlight: tosa: use bl_get_data instead of dev_get_drvdata X-Git-Tag: MMI-PSA29.97-13-9~14988^2~70 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42109b3cf6b7ba16bcacd8e49684dcbdb5e2b2fb;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;