On Wed, Jun 08, 2022 at 04:41:14PM +0800, cy_huang wrote:
From: ChiYuan Huang cy_huang@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@richtek.com Signed-off-by: ChiYuan Huang cy_huang@richtek.com
Reviewed-by: Daniel Thompson daniel.thompson@linaro.org
Daniel.