summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2026-02-02 02:06:21 -0800
committerTzung-Bi Shih <tzungbi@kernel.org>2026-02-03 02:22:38 +0000
commitd55493f6d2dae3a8e8b50fe82e947781a7735c51 (patch)
tree6413abfb3056e1f5f13e9169cb2afc48b9087434 /include/linux/platform_data
parent9600b8bdbfe48bb51865be743450160577d2bae2 (diff)
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>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/cros_ec_commands.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h
index 144243143034..bddc7568158e 100644
--- a/include/linux/platform_data/cros_ec_commands.h
+++ b/include/linux/platform_data/cros_ec_commands.h
@@ -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) */