RE: [PATCH v2] regulator: add new regulator driver for lp872x

From: Kim, Milo
Date: Tue Jun 19 2012 - 02:42:20 EST


> LP872X_MAX_REGULATORS is 9.
> But for LP8720, the LP8720_NUM_REGULATORS is 6.
> So this should be:
> for (i = 0 ; i < lp->num_regulators ; i++)

Thanks for your opinion.
In the patch v3, max loop count will be variable in case of PMU.

static struct regulator_init_data
*lp872x_find_regulator_init_data(int idx, struct lp872x *lp)
{
int max_regulators;

switch (lp->chipid) {
case LP8720:
max_regulators = LP8720_NUM_REGULATORS;
break;
case LP8725:
max_regulators = LP8725_NUM_REGULATORS;
break;
default:
return NULL;
}

for (i = 0 ; i < max_regulators ; i++)

...

Thanks & BR
Milo -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/