]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: pwm_bl: Fix cie1913 comments and constant
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 8 Oct 2019 12:03:24 +0000 (14:03 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 14 Oct 2019 07:57:45 +0000 (08:57 +0100)
commitef34973fb0f6bec83fbec06cd324fef160ac720d
tree4979b2863033ebc4b15ae4fbb6b977827e8750a1
parent9bffe9b5ae67e7e2226657dd58cf8f30bbdc18c0
backlight: pwm_bl: Fix cie1913 comments and constant

The "break-even" point for the two formulas is L==8, which is also
what the code actually implements. [Incidentally, at that point one
has Y=0.008856, not 0.08856].

Moreover, all the sources I can find say the linear factor is 903.3
rather than 902.3, which makes sense since then the formulas agree at
L==8, both yielding the 0.008856 figure to four significant digits.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c