Skip to content

Commit d55493f

Browse files
gwendalcrTzung-Bi Shih
authored andcommitted
platform/chrome: lightbar: Fix lightbar_program_ex alignment
Make sure sub-command of lightbar command starts with a 8bit parameter to ensure alignment. Fixes: 9600b8b ("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>
1 parent 9600b8b commit d55493f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/platform_data/cros_ec_commands.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,10 +2026,10 @@ struct lightbar_program {
20262026
* EC RAM.
20272027
*/
20282028
struct lightbar_program_ex {
2029-
uint16_t offset;
20302029
uint8_t size;
2030+
uint16_t offset;
20312031
uint8_t data[0];
2032-
} __ec_todo_unpacked;
2032+
} __ec_todo_packed;
20332033

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

0 commit comments

Comments
 (0)