Skip to contentSkip to conversation

platform/chrome: lightbar: Fix lightbar_program_ex alignment

PATCH Superseded Gwendal Grignou 2 participants 2 messages Feb 2 ChromeOS EC subdrivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 include/linux/platform_data/cros_ec_commands.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/platform_data/cros_ec_commands.h +1 -1
index 144243143034..16e779daad26 100644
@@ -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;
 
Signature · 1 line
2.53.0.rc1.225.gd81095ad13-goog