[PATCH v2 2/2] backlight: rt4831: Apply ocp level from devicetree

Daniel Thompson daniel.thompson at linaro.org
Wed Jun 8 09:23:34 UTC 2022


On Wed, Jun 08, 2022 at 04:41:14PM +0800, 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>


Daniel.


More information about the dri-devel mailing list