diff options
author | ChiYuan Huang <cy_huang@richtek.com> | 2022-06-21 18:36:28 +0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2022-06-27 15:07:47 +0100 |
commit | 8b0bce056351bb9abd06a09cffff1ff0d84ee580 (patch) | |
tree | 0d8cd0ff5235ab35e971f20cb78d95b0f9fae019 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 27e5c6546333bc7bbbb58b1a823ef21a6317b546 (diff) |
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: Lucas Tsai <lucas_tsai@richtek.com>
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/1655807788-24511-3-git-send-email-u0084500@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions