public inbox for chrome-platform@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] platform/chrome: lightbar: Fix lightbar_program_ex alignment
@ 2026-02-02 10:06 Gwendal Grignou
  2026-02-02 13:10 ` Tzung-Bi Shih
  0 siblings, 1 reply; 2+ messages in thread
From: Gwendal Grignou @ 2026-02-02 10:06 UTC (permalink / raw)
  To: tzungbi; +Cc: chrome-platform, Gwendal Grignou

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>
---
 include/linux/platform_data/cros_ec_commands.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h
index 144243143034..16e779daad26 100644
--- a/include/linux/platform_data/cros_ec_commands.h
+++ b/include/linux/platform_data/cros_ec_commands.h
@@ -2026,8 +2026,8 @@ 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;
 
-- 
2.53.0.rc1.225.gd81095ad13-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-02 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02 10:06 [PATCH] platform/chrome: lightbar: Fix lightbar_program_ex alignment Gwendal Grignou
2026-02-02 13:10 ` Tzung-Bi Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox