[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190522212207.GA28132@amd>
Date: Wed, 22 May 2019 23:22:07 +0200
From: Pavel Machek <pavel@....cz>
To: Dan Murphy <dmurphy@...com>
Cc: jacek.anaszewski@...il.com, broonie@...nel.org,
lgirdwood@...il.com, lee.jones@...aro.org,
linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RESEND PATCH v4 1/6] regulator: lm363x: Make the gpio register
enable flexible
On Wed 2019-05-22 14:27:28, Dan Murphy wrote:
> The use of and enablement of the GPIO can be used across devices.
> Use the enable_reg in the regulator descriptor for the register to
> write.
>
> Signed-off-by: Dan Murphy <dmurphy@...com>
Acked-by: Pavel Machek <pavel@....cz>
> ---
> drivers/regulator/lm363x-regulator.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/regulator/lm363x-regulator.c b/drivers/regulator/lm363x-regulator.c
> index c876e161052a..382b1cecdd93 100644
> --- a/drivers/regulator/lm363x-regulator.c
> +++ b/drivers/regulator/lm363x-regulator.c
> @@ -263,8 +263,8 @@ static int lm363x_regulator_probe(struct platform_device *pdev)
>
> if (gpiod) {
> cfg.ena_gpiod = gpiod;
> -
> - ret = regmap_update_bits(regmap, LM3632_REG_BIAS_CONFIG,
> + ret = regmap_update_bits(regmap,
> + lm363x_regulator_desc[id].enable_reg,
> LM3632_EXT_EN_MASK,
> LM3632_EXT_EN_MASK);
> if (ret) {
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists