File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ static_assert(sizeof(enum thunderstrike_led_state) == 1);
63
63
struct thunderstrike_hostcmd_board_info {
64
64
__le16 revision ;
65
65
__le16 serial [7 ];
66
- };
66
+ } __packed ;
67
67
68
68
struct thunderstrike_hostcmd_haptics {
69
69
u8 motor_left ;
70
70
u8 motor_right ;
71
- };
71
+ } __packed ;
72
72
73
73
struct thunderstrike_hostcmd_resp_report {
74
74
u8 report_id ; /* THUNDERSTRIKE_HOSTCMD_RESP_REPORT_ID */
@@ -81,7 +81,7 @@ struct thunderstrike_hostcmd_resp_report {
81
81
__le16 fw_version ;
82
82
enum thunderstrike_led_state led_state ;
83
83
u8 payload [30 ];
84
- };
84
+ } __packed ;
85
85
} __packed ;
86
86
static_assert (sizeof (struct thunderstrike_hostcmd_resp_report ) ==
87
87
THUNDERSTRIKE_HOSTCMD_REPORT_SIZE );
@@ -92,15 +92,15 @@ struct thunderstrike_hostcmd_req_report {
92
92
u8 reserved_at_10 ;
93
93
94
94
union {
95
- struct {
95
+ struct __packed {
96
96
u8 update ;
97
97
enum thunderstrike_led_state state ;
98
98
} led ;
99
- struct {
99
+ struct __packed {
100
100
u8 update ;
101
101
struct thunderstrike_hostcmd_haptics motors ;
102
102
} haptics ;
103
- };
103
+ } __packed ;
104
104
u8 reserved_at_30 [27 ];
105
105
} __packed ;
106
106
static_assert (sizeof (struct thunderstrike_hostcmd_req_report ) ==
You can’t perform that action at this time.
0 commit comments