{
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)
{
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)
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)) {