]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
backlight-add-new-lm3639-backlight-driver-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 13 Sep 2012 01:01:10 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 07:28:08 +0000 (17:28 +1000)
code layout tweaks

Cc: "G.Shark Jeong" <gshark.jeong@gmail.com>
Cc: Daniel Jeong <daniel.jeong@ti.com>
Cc: G.Shark Jeong <gshark.jeong@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/lm3639_bl.c

index d143e4385e14e4e66b961dc9c7674a2a5d213a90..c6915c6c3cd1e5fc3941a8a3e6fe242fa9db0310 100644 (file)
@@ -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, &reg_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, &reg_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)) {