[Linux-stm32] [PATCH v2 2/2] regulator: Add support for stm32 power regulators

Mark Brown broonie at kernel.org
Mon Apr 15 09:57:17 UTC 2019


On Mon, Apr 15, 2019 at 09:17:38AM +0000, Pascal PAILLET-LME wrote:

> +int stm32_pwr_reg_is_ready(struct regulator_dev *rdev)
> +{
> +	struct stm32_pwr_reg *priv = rdev_get_drvdata(rdev);
> +	u32 val;
> +
> +	val = readl_relaxed(priv->base + REG_PWR_CR3);
> +
> +	return (val & priv->ready_mask);
> +}

You should probably add a get_status() callback using this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://st-md-mailman.stormreply.com/pipermail/linux-stm32/attachments/20190415/2bab6882/attachment.sig>


More information about the Linux-stm32 mailing list