Commit d55493f6 authored by Gwendal Grignou's avatar Gwendal Grignou Committed by Tzung-Bi Shih
Browse files

platform/chrome: lightbar: Fix lightbar_program_ex alignment



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

Fixes: 9600b8bd ("platform/chrome: lightbar: Add support for large sequence")
Signed-off-by: default avatarGwendal Grignou <gwendal@google.com>
Link: https://lore.kernel.org/r/20260202100621.3608437-1-gwendal@google.com


Signed-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
parent 9600b8bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2026,10 +2026,10 @@ struct lightbar_program {
 * EC RAM.
 */
struct lightbar_program_ex {
	uint16_t offset;
	uint8_t size;
	uint16_t offset;
	uint8_t data[0];
} __ec_todo_unpacked;
} __ec_todo_packed;

struct ec_params_lightbar {
	uint8_t cmd;		      /* Command (see enum lightbar_command) */