From 60a39f4f5d192625ea03daf8cd26bc89aa1a91c2 Mon Sep 17 00:00:00 2001 From: Purdea Andrei Date: Sun, 9 May 2021 06:45:41 +0300 Subject: haptic: correct size of reserved field in the haptic structure. This saves 1 byte of wasted SRAM. (#12483) Co-authored-by: Drashna Jaelre --- drivers/haptic/haptic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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; -- cgit v1.2.3