[PATCH v2 1/2] mtd: maps: physmap: Add VPP regulator control
Pawel Moll
pawel.moll at arm.com
Mon Jul 23 15:04:59 EDT 2012
On Mon, 2012-07-23 at 19:45 +0100, Mark Brown wrote:
> The MMC subsystem went down that path initially but has recently
> converted to using regulators more normally. It provides an explict
> callback but uses regulators otherwise IIRC which seems sensible.
Yeesss...
#ifdef CONFIG_REGULATOR
/* If we're using the regulator framework, try to fetch a regulator */
host->vcc = regulator_get(&dev->dev, "vmmc");
if (IS_ERR(host->vcc))
host->vcc = NULL;
else {
int mask = mmc_regulator_get_ocrmask(host->vcc);
> > This would be perfect. Will it happen for 3.7? If so, I'll drop the
> > non-OF patch and make the OF one rely on -ENODEV.
>
> It'll happen if anyone does the work; I've not currently got any useful
> systems that run DT and don't have a particularly large amount of spare
> time. People were muttering about it, though, for much the reasons you
> mentioned.
Ok, I take the hint, will look into it.
Paweł
More information about the linux-mtd
mailing list