Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/chrome: lightbar: Fix lightbar_program_ex alignment

Make sure sub-command of lightbar command starts with a 8bit
parameter to ensure alignment.

Fixes: 9600b8bdbfe4 ("platform/chrome: lightbar: Add support for large sequence")
Signed-off-by: Gwendal Grignou <gwendal@google.com>
Link: https://lore.kernel.org/r/20260202100621.3608437-1-gwendal@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>

authored by

Gwendal Grignou and committed by
Tzung-Bi Shih
d55493f6 9600b8bd

+2 -2
+2 -2
include/linux/platform_data/cros_ec_commands.h
··· 2026 2026 * EC RAM. 2027 2027 */ 2028 2028 struct lightbar_program_ex { 2029 - uint16_t offset; 2030 2029 uint8_t size; 2030 + uint16_t offset; 2031 2031 uint8_t data[0]; 2032 - } __ec_todo_unpacked; 2032 + } __ec_todo_packed; 2033 2033 2034 2034 struct ec_params_lightbar { 2035 2035 uint8_t cmd; /* Command (see enum lightbar_command) */