summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/update_fw.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/update_fw.h b/include/update_fw.h
index e454f129bd..b013b77a75 100644
--- a/include/update_fw.h
+++ b/include/update_fw.h
@@ -211,11 +211,18 @@ struct touchpad_info {
uint8_t allowed_fw_hash[32];
/* Vendor specific data. */
- struct {
- uint16_t id;
- uint16_t fw_version;
- uint16_t fw_checksum;
- } elan;
+ union {
+ struct {
+ uint16_t id;
+ uint16_t fw_version;
+ uint16_t fw_checksum;
+ } elan __packed;
+ struct {
+ uint16_t id;
+ uint16_t fw_version;
+ uint16_t fw_checksum;
+ } st __packed;
+ } __packed;
} __packed;
/*