goto err_i2c;
/* sent power fault detection event to specific regulator */
- for (icnt = 0; icnt < 6; icnt++)
+ for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++)
if ((flag0 & (0x4 << icnt))
&& (pchip->irqmask & (0x04 << icnt))
&& (pchip->rdev[icnt] != NULL))
err_regulator:
/* output disable */
- for (icnt = 0; icnt < 0x06; icnt++)
+ for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++)
lp8755_write(pchip, icnt, 0x00);
return ret;
for (icnt = 0; icnt < mphase_buck[pchip->mphase].nreg; icnt++)
regulator_unregister(pchip->rdev[icnt]);
- for (icnt = 0; icnt < 0x06; icnt++)
+ for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++)
lp8755_write(pchip, icnt, 0x00);
if (pchip->irq != 0)