<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/platform/chrome/cros_kbd_led_backlight.c, branch linux-6.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.9.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.9.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2022-07-20T01:22:59Z</updated>
<entry>
<title>platform/chrome: cros_kbd_led_backlight: fix build warning</title>
<updated>2022-07-20T01:22:59Z</updated>
<author>
<name>Tzung-Bi Shih</name>
<email>tzungbi@kernel.org</email>
</author>
<published>2022-07-18T10:50:47Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=7e76e4bc00999846c17604dc25486fffa542078d'/>
<id>urn:sha1:7e76e4bc00999846c17604dc25486fffa542078d</id>
<content type='text'>
drivers/platform/chrome/cros_kbd_led_backlight.c got a new build warning
when using the randconfig in [1]:
&gt;&gt;&gt; warning: unused variable 'keyboard_led_drvdata_ec_pwm'

The warning happens when CONFIG_CROS_EC is set but CONFIG_OF is not set.
Reproduce:
- mkdir build_dir
- wget [1] -O build_dir/.config
- COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 \
  O=build_dir ARCH=s390 SHELL=/bin/bash drivers/platform/chrome/

Fix the warning by using __maybe_unused.  Also use IS_ENABLED() because
CROS_EC is a tristate.

[1]: https://download.01.org/0day-ci/archive/20220717/202207170538.MR39dw8m-lkp@intel.com/config

Fixes: 40f58143745e ("platform/chrome: cros_kbd_led_backlight: support EC PWM backend")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Reviewed-by: Guenter Roeck &lt;groeck@chromium.org&gt;
Link: https://lore.kernel.org/r/20220718105047.2356542-1-tzungbi@kernel.org
</content>
</entry>
<entry>
<title>platform/chrome: cros_kbd_led_backlight: support EC PWM backend</title>
<updated>2022-06-10T02:31:42Z</updated>
<author>
<name>Tzung-Bi Shih</name>
<email>tzungbi@kernel.org</email>
</author>
<published>2022-05-23T09:08:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=40f58143745eaabc68ef44b068642ca3b38d23a6'/>
<id>urn:sha1:40f58143745eaabc68ef44b068642ca3b38d23a6</id>
<content type='text'>
EC PWM backend uses EC_CMD_PWM_SET_KEYBOARD_BACKLIGHT and
EC_CMD_PWM_GET_KEYBOARD_BACKLIGHT for setting and getting the brightness
respectively.

Signed-off-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Tested-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Link: https://lore.kernel.org/r/20220523090822.3035189-6-tzungbi@kernel.org
</content>
</entry>
<entry>
<title>platform/chrome: cros_kbd_led_backlight: support OF match</title>
<updated>2022-06-10T02:31:42Z</updated>
<author>
<name>Tzung-Bi Shih</name>
<email>tzungbi@kernel.org</email>
</author>
<published>2022-05-23T09:08:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fd1e8054ff6985cfcbdf66a6de88cf1c47a14f46'/>
<id>urn:sha1:fd1e8054ff6985cfcbdf66a6de88cf1c47a14f46</id>
<content type='text'>
For letting device tree based machines to use the driver, support OF match.

Reviewed-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Link: https://lore.kernel.org/r/20220523090822.3035189-5-tzungbi@kernel.org
</content>
</entry>
<entry>
<title>platform/chrome: cros_kbd_led_backlight: separate ACPI backend</title>
<updated>2022-06-10T02:31:42Z</updated>
<author>
<name>Tzung-Bi Shih</name>
<email>tzungbi@kernel.org</email>
</author>
<published>2022-05-23T09:08:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6b1e5ba39c44442c5ca115d89056823e064f1796'/>
<id>urn:sha1:6b1e5ba39c44442c5ca115d89056823e064f1796</id>
<content type='text'>
cros_kbd_led_backlight uses ACPI_KEYBOARD_BACKLIGHT_WRITE and
ACPI_KEYBOARD_BACKLIGHT_READ for setting and getting the brightness
respectively.

Separate ACPI operations for preparing the driver to support other
backends.

Signed-off-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Reviewed-by: Guenter Roeck &lt;groeck@chromium.org&gt;
Link: https://lore.kernel.org/r/20220523090822.3035189-3-tzungbi@kernel.org
</content>
</entry>
<entry>
<title>platform/chrome: cros_kbd_led_backlight: sort headers alphabetically</title>
<updated>2022-06-10T02:31:42Z</updated>
<author>
<name>Tzung-Bi Shih</name>
<email>tzungbi@kernel.org</email>
</author>
<published>2022-05-23T09:08:18Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=337eac8f8499df7aa5a15e53c92d7242e97b4212'/>
<id>urn:sha1:337eac8f8499df7aa5a15e53c92d7242e97b4212</id>
<content type='text'>
To be neat and reduce conflict possibility, sort the headers
alphabetically.

Reviewed-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Tzung-Bi Shih &lt;tzungbi@kernel.org&gt;
Link: https://lore.kernel.org/r/20220523090822.3035189-2-tzungbi@kernel.org
</content>
</entry>
<entry>
<title>platform/chrome: cros_kbd_led_backlight: switch to SPDX identifier</title>
<updated>2019-02-01T09:13:06Z</updated>
<author>
<name>Enric Balletbo i Serra</name>
<email>enric.balletbo@collabora.com</email>
</author>
<published>2019-01-29T09:38:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0e27a11f3201a9835d5bb584c9842d8d47326073'/>
<id>urn:sha1:0e27a11f3201a9835d5bb584c9842d8d47326073</id>
<content type='text'>
Adopt the SPDX license identifier headers to ease license compliance
management. Also change the term 'Chrome OS' for 'ChromeOS' to be
coherent with other drivers.

Signed-off-by: Enric Balletbo i Serra &lt;enric.balletbo@collabora.com&gt;
Reviewed-by: Guenter Roeck &lt;groeck@chromium.org&gt;
</content>
</entry>
<entry>
<title>platform/chrome: Add Chrome OS keyboard backlight LEDs support</title>
<updated>2016-05-11T18:55:47Z</updated>
<author>
<name>Simon Que</name>
<email>sque@chromium.org</email>
</author>
<published>2016-03-08T19:12:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=492ef7829d2d09428803bffb187d5781bbc12ca5'/>
<id>urn:sha1:492ef7829d2d09428803bffb187d5781bbc12ca5</id>
<content type='text'>
This is a driver for ACPI-based keyboard backlight LEDs found on
Chromebooks. The driver locates \\_SB.KBLT ACPI device and exports
backlight as "chromeos::kbd_backlight" LED class device in sysfs.

Signed-off-by: Simon Que &lt;sque@chromium.org&gt;
Signed-off-by: Duncan Laurie &lt;dlaurie@chromium.org&gt;
Tested-by: Evan McClain &lt;aeroevan@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@chromium.org&gt;
Signed-off-by: Olof Johansson &lt;olof@lixom.net&gt;
</content>
</entry>
</feed>
