Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/msm: fix brightness level mapping
The current brightness level mapping does not correctly map the brightness level range from user space to the range supported by the panel. For example if the max user brightness reported is 4095, and panel backlight range is 0-255. Then user is expected to be able to set brightness in range from 0-4095, but current logic truncates at bl-max (255). Moreover it doesn't take into account bl-min. Fix logic such that the brightness range set by user correctly scales to the backlight level from panel. Bug: 139263611 Change-Id: Ic70909af63fb5b66ebc1434477f2fc41a785ce1f Signed-off-by: Adrian Salido <[email protected]> Signed-off-by: Carlos Ayrton Lopez Arroyo <[email protected]>
- Loading branch information