]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/chrome: lightbar: Report number of segments
authorGwendal Grignou <gwendal@chromium.org>
Fri, 30 Jan 2026 08:13:50 +0000 (00:13 -0800)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 30 Jan 2026 08:29:52 +0000 (08:29 +0000)
commit2d8251d98ce0be96d79aec708aa70cab2b4f6f17
tree136ea0ac9ec176cccc2b48b5d133e3a1524785d3
parentec0dd36dbf8b0b209e63d0cd795451fa2203c736
platform/chrome: lightbar: Report number of segments

Add attribue `num_segments` to return the number of exposed LED segments
in the lightbar. It can be smaller than the number of physical leds in
the lightbar.

Test: Check the attribute is present and returns a value when read.

Signed-off-by: Gwendal Grignou <gwendal@google.com>
Link: https://lore.kernel.org/r/20260130081351.487517-1-gwendal@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lightbar.c
include/linux/platform_data/cros_ec_commands.h