lkml.org 
[lkml]   [2019]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 2/2] regulator: Add support for stm32 power regulators
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-04-15 11:57    [W:1.766 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site