[Linux-stm32] [PATCH 3/6] net: stmmac: sun8i: Use devm_regulator_get for PHY regulator

Andrew Lunn andrew at lunn.ch
Tue Aug 20 15:39:39 UTC 2019


On Tue, Aug 20, 2019 at 04:53:40PM +0200, megous at megous.com wrote:
> From: Ondrej Jirman <megous at megous.com>
> 
> Use devm_regulator_get instead of devm_regulator_get_optional and rely
> on dummy supply. This avoids NULL checks before regulator_enable/disable
> calls.

Hi Ondrej

What do you mean by a dummy supply? I'm just trying to make sure you
are not breaking backwards compatibility.

     Thanks
	Andrew



More information about the Linux-stm32 mailing list