mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-20 01:24:39 +08:00
bd6e8441c2
Both adp8860 and adp8870 define some extensions to the backlight class. This causes warnings: Warning: /sys/class/backlight/<backlight>/ambient_light_level is defined 2 times: /sys/class/backlight/<backlight>/ambient_light_level:8 /sys/class/backlight/<backlight>/ambient_light_level:30 Warning: /sys/class/backlight/<backlight>/ambient_light_zone is defined 2 times: /sys/class/backlight/<backlight>/ambient_light_zone:18 /sys/class/backlight/<backlight>/ambient_light_zone:40 As ABI definitions shouldn't be duplicated. Unfortunately, the ABI is dependent on the specific device features. As such, ambient_light_level range is somewhat different among the supported devices. The ambient_light_zone is even worse: the meanings of each preset are different, and there's no ABI to retrieve the supported types nor their meanins. Unfortunately, it is too late to fix it without causing regressions, as this has been used since Kernel v2.6.35. Rewrite those ABI documentation using the current documentation as a reference, and double-checking at the datasheets: https://www.analog.com/media/en/technical-documentation/data-sheets/ADP8870.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ADP8860.pdf in order to properly document the differences between those two drivers. Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/342195ad5a819d9bcfcebc133c77ab69b4211672.1604042072.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
sysfs interface for analog devices adp8860 backlight driver
|
|
-----------------------------------------------------------
|
|
|
|
The backlight brightness control operates at three different levels for the
|
|
adp8860, adp8861 and adp8863 devices: daylight (level 1), office (level 2) and
|
|
dark (level 3). By default the brightness operates at the daylight brightness
|
|
level.
|
|
|
|
See also /sys/class/backlight/<backlight>/ambient_light_level and
|
|
/sys/class/backlight/<backlight>/ambient_light_zone.
|
|
|
|
|
|
What: /sys/class/backlight/<backlight>/l1_daylight_max
|
|
What: /sys/class/backlight/<backlight>/l2_office_max
|
|
What: /sys/class/backlight/<backlight>/l3_dark_max
|
|
Date: Apr, 2010
|
|
KernelVersion: v2.6.35
|
|
Contact: Michael Hennerich <michael.hennerich@analog.com>
|
|
Description:
|
|
(RW) Maximum current setting for the backlight when brightness
|
|
is at one of the three levels (daylight, office or dark). This
|
|
is an input code between 0 and 127, which is transformed to a
|
|
value between 0 mA and 30 mA using linear or non-linear
|
|
algorithms.
|
|
|
|
|
|
What: /sys/class/backlight/<backlight>/l1_daylight_dim
|
|
What: /sys/class/backlight/<backlight>/l2_office_dim
|
|
What: /sys/class/backlight/<backlight>/l3_dark_dim
|
|
Date: Apr, 2010
|
|
KernelVersion: v2.6.35
|
|
Contact: Michael Hennerich <michael.hennerich@analog.com>
|
|
Description:
|
|
(RW) Dim current setting for the backlight when brightness is at
|
|
one of the three levels (daylight, office or dark). This is an
|
|
input code between 0 and 127, which is transformed to a value
|
|
between 0 mA and 30 mA using linear or non-linear algorithms.
|