[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <A874F61F95741C4A9BA573A70FE3998FB880@DQHE02.ent.ti.com>
Date: Tue, 19 Jun 2012 06:42:19 +0000
From: "Kim, Milo" <Milo.Kim@...com>
To: "axel.lin@...il.com" <axel.lin@...il.com>
CC: Mark Brown <broonie@...nsource.wolfsonmicro.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Girdwood, Liam" <lrg@...com>
Subject: RE: [PATCH v2] regulator: add new regulator driver for lp872x
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists