summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPurdea Andrei <andrei@purdea.ro>2021-05-09 06:45:41 +0300
committerGitHub <noreply@github.com>2021-05-08 20:45:41 -0700
commit60a39f4f5d192625ea03daf8cd26bc89aa1a91c2 (patch)
tree4bf5b88b926fdb31af4b9f78bd23f6d6024455b7
parentdf57590ec64f1fc6d3c4163ba60be96305339113 (diff)
haptic: correct size of reserved field in the haptic structure. This saves 1 byte of wasted SRAM. (#12483)
Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r--drivers/haptic/haptic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/haptic/haptic.h b/drivers/haptic/haptic.h
index 5d3bd1c310..9223ad1c81 100644
--- a/drivers/haptic/haptic.h
+++ b/drivers/haptic/haptic.h
@@ -41,7 +41,7 @@ typedef union {
uint8_t dwell : 7;
bool cont : 1;
uint8_t amplitude : 8;
- uint16_t reserved : 7;
+ uint8_t reserved : 5;
};
} haptic_config_t;