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)
commitefdf690e159ab340486dd6d42f387bbb8f03a579
tree4979b2863033ebc4b15ae4fbb6b977827e8750a1
parent349ee1228729df5c2a0cb33506cad2661e40e750
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