From f309f92fa964e8c04670d5d688a2415bb33eb026 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 28 Sep 2012 10:20:18 +1000 Subject: [PATCH] backlight-add-new-lm3639-backlight-driver-fix code layout tweaks Cc: "G.Shark Jeong" Cc: Daniel Jeong Cc: G.Shark Jeong Cc: Richard Purdie Signed-off-by: Andrew Morton --- drivers/video/backlight/lm3639_bl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_bl.c index d143e4385e14..c6915c6c3cd1 100644 --- a/drivers/video/backlight/lm3639_bl.c +++ b/drivers/video/backlight/lm3639_bl.c @@ -222,8 +222,9 @@ static void lm3639_torch_brightness_set(struct led_classdev *cdev, { int ret; unsigned int reg_val; - struct lm3639_chip_data *pchip = - container_of(cdev, struct lm3639_chip_data, cdev_torch); + struct lm3639_chip_data *pchip; + + pchip = container_of(cdev, struct lm3639_chip_data, cdev_torch); ret = regmap_read(pchip->regmap, REG_FLAG, ®_val); if (ret < 0) @@ -259,8 +260,9 @@ static void lm3639_flash_brightness_set(struct led_classdev *cdev, { int ret; unsigned int reg_val; - struct lm3639_chip_data *pchip = - container_of(cdev, struct lm3639_chip_data, cdev_flash); + struct lm3639_chip_data *pchip; + + pchip = container_of(cdev, struct lm3639_chip_data, cdev_flash); ret = regmap_read(pchip->regmap, REG_FLAG, ®_val); if (ret < 0) @@ -303,7 +305,6 @@ static int __devinit lm3639_probe(struct i2c_client *client, int ret; struct lm3639_chip_data *pchip; struct lm3639_platform_data *pdata = client->dev.platform_data; - struct backlight_properties props; if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { -- 2.39.5