backlight: pwm_bl: Set scale type for CIE 1931 curves
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 9 Jul 2019 19:00:06 +0000 (12:00 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 2 Sep 2019 14:55:11 +0000 (15:55 +0100)
commit511a204638d7d750f859c332635d09f38273b4f0
tree8b7006b351fe99a23df34284317da4ea3553d4fc
parentd55c028f8b25bdaaba9ae08026052b5b44d031b0
backlight: pwm_bl: Set scale type for CIE 1931 curves

For backlight curves calculated with the CIE 1931 algorithm set
the brightness scale type to non-linear. This makes the scale type
available to userspace via the 'scale' sysfs attribute.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c