aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/backlight.c
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2019-07-09 12:00:07 -0700
committerLee Jones <lee.jones@linaro.org>2019-09-02 15:55:15 +0100
commitc0b64faf0fe6ca2574a00faed1ae833130db4e08 (patch)
treef5aa40f18d08c3a944ad2005b65c3a0f7de39383 /drivers/video/backlight/backlight.c
parentbacklight: pwm_bl: Set scale type for CIE 1931 curves (diff)
downloadlinux-dev-c0b64faf0fe6ca2574a00faed1ae833130db4e08.tar.xz
linux-dev-c0b64faf0fe6ca2574a00faed1ae833130db4e08.zip
backlight: pwm_bl: Set scale type for brightness curves specified in the DT
Check if a brightness curve specified in the device tree is linear or not and set the corresponding property accordingly. This makes the scale type available to userspace via the 'scale' sysfs attribute. To determine if a curve is linear it is compared to a interpolated linear curve between min and max brightness. The curve is considered linear if no value deviates more than +/-5% of ${brightness_range} from their interpolated value. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Acked-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight/backlight.c')
0 files changed, 0 insertions, 0 deletions