Skip to content
Commit 8b0bce05 authored by ChiYuan Huang's avatar ChiYuan Huang Committed by Lee Jones
Browse files

backlight: rt4831: Apply ocp level from devicetree



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: default avatarLucas Tsai <lucas_tsai@richtek.com>
Signed-off-by: default avatarChiYuan Huang <cy_huang@richtek.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/1655807788-24511-3-git-send-email-u0084500@gmail.com
parent 27e5c654
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment