[PATCH v4 2/2] backlight: rt4831: Apply ocp level from devicetree
Lee Jones
lee.jones at linaro.org
Mon Jun 27 14:08:10 UTC 2022
On Tue, 21 Jun 2022, cy_huang wrote:
> From: ChiYuan Huang <cy_huang at richtek.com>
>
> Add 'richtek,bled-ocp-microamp' property parsing in
> device_property_init function.
>
> This value may configure prior to the kernel driver. If it's not specified in
> devicetree, keep the original setting. Else, use clamp to align the
> value in min/max range and also roundup to choose the best selector.
>
> Reported-by: Lucas Tsai <lucas_tsai at richtek.com>
> Signed-off-by: ChiYuan Huang <cy_huang at richtek.com>
> Reviewed-by: Daniel Thompson <daniel.thompson at linaro.org>
> ---
> Hi, Daniel:
>
> I may use the wrong macro, must be 'DIV_ROUND_UP', not 'roundup'.
> the v4 is to fix it.
>
> Since v4
> - Fix wrong macro usage, must be 'DIV_ROUND_UP', not 'roundup'
>
> Since v2:
> - Prase the 'richtek,bled-ocp-microamp', clamp the value in min/max range, and
> roundup to get the best selector.
>
> ---
> drivers/video/backlight/rt4831-backlight.c | 33 +++++++++++++++++++++++++++++-
> 1 file changed, 32 insertions(+), 1 deletion(-)
Applied, thanks.
--
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
More information about the dri-devel
mailing list