|
@@ -76,10 +76,13 @@ static int lm3639_chip_init(struct lm3639_chip_data *pchip)
|
|
|
goto out;
|
|
|
|
|
|
/* output pins config. */
|
|
|
- if (!pdata->init_brt_led)
|
|
|
- reg_val = pdata->fled_pins | pdata->bled_pins;
|
|
|
- else
|
|
|
- reg_val = pdata->fled_pins | pdata->bled_pins | 0x01;
|
|
|
+ if (!pdata->init_brt_led) {
|
|
|
+ reg_val = pdata->fled_pins;
|
|
|
+ reg_val |= pdata->bled_pins;
|
|
|
+ } else {
|
|
|
+ reg_val = pdata->fled_pins;
|
|
|
+ reg_val |= pdata->bled_pins | 0x01;
|
|
|
+ }
|
|
|
|
|
|
ret = regmap_update_bits(pchip->regmap, REG_ENABLE, 0x79, reg_val);
|
|
|
if (ret < 0)
|