Re: [PATCH v4 2/2] backlight: rt4831: Apply ocp level from devicetree
From: Lee Jones <hidden>
Date: 2022-06-27 14:08:32
Also in:
dri-devel, linux-devicetree, linux-leds, lkml
From: Lee Jones <hidden>
Date: 2022-06-27 14:08:32
Also in:
dri-devel, linux-devicetree, linux-leds, lkml
On Tue, 21 Jun 2022, cy_huang wrote:
From: ChiYuan Huang <redacted> 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 <redacted> Signed-off-by: ChiYuan Huang <redacted> Reviewed-by: Daniel Thompson <redacted> --- 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