Re: [PATCH] regulator: add driver for MAX8660/8661

From: Mark Brown
Date: Thu Sep 24 2009 - 13:39:26 EST


On Thu, Sep 24, 2009 at 03:24:05PM +0200, Wolfram Sang wrote:
> Tested with a MX25-based custom board.

> Signed-off-by: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>

This looks good - thanks! A couple of little comments below:

Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

> + if (MAX8660_DCDC_MIN_UV + selector * MAX8660_DCDC_STEP > max_uV)
> + return -EINVAL;

Not important but using list_voltage() here would be a little nicer.

> +static struct regulator_ops max8660_dcdc_ops = {
> + .is_enabled = max8660_dcdc_is_enabled,
> + .list_voltage = max8660_dcdc_list,
> + .set_voltage = max8660_dcdc_set,
> + .get_voltage = max8660_dcdc_get,
> + /* no set_mode() & friends: forced PWM does not save any power */

Forced PWM is normally a power loss - the benefit it gives is the
ability to respond to sudden spikes in load without voltage droops. The
power benefit from not having it enabled is usually only apparent at
lower loads.
--
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/