[PATCH] can: flexcan: add a regulator for transceiver

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Jul 3 09:07:47 EDT 2012


On Tue, Jul 03, 2012 at 08:46:11PM +0800, Shawn Guo wrote:

> +	if (priv->reg_xcvr) {
> +		if (on)
> +			regulator_enable(priv->reg_xcvr);
> +		else
> +			regulator_disable(priv->reg_xcvr);
> +	}

No, the regulator API will stub itself out if not enabled, and if the
supply is fixed then a fixed voltage regulator will do the job.  We
shouldn't be open coding this stuff in individual users.



More information about the linux-arm-kernel mailing list