[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YOQTLWsXpTOK58dr@dell>
Date: Tue, 6 Jul 2021 09:24:13 +0100
From: Lee Jones <lee.jones@...aro.org>
To: cy_huang <u0084500@...il.com>
Cc: broonie@...nel.org, linux-kernel@...r.kernel.org,
lgirdwood@...il.com, axel.lin@...ics.com, cy_huang@...htek.com
Subject: Re: [PATCH v2] regulator: rt5033: Use linear ranges to map all
voltage selection
On Tue, 06 Jul 2021, cy_huang wrote:
> From: ChiYuan Huang <cy_huang@...htek.com>
>
> Instead of linear mapping, Use linear range to map all voltage selection.
>
> Signed-off-by: ChiYuan Huang <cy_huang@...htek.com>
> ---
> Since v2
> - recover the volt number back in rt5033-private.h
> - Add the n_voltages from v1 back.
>
> Even though commit 6549c46af855 ("regulator: rt5033: Fix n_voltages settings for BUCK and LDO")
> can fix the linear mapping to the correct min/max voltage
> But there're still non-step ranges for the reserved value.
>
> To use the linear range can fix it for mapping all voltage selection.
> ---
> drivers/regulator/rt5033-regulator.c | 21 +++++++++++++++------
> include/linux/mfd/rt5033-private.h | 4 ++--
Acked-by: Lee Jones <lee.jones@...aro.org>
> 2 files changed, 17 insertions(+), 8 deletions(-)
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists