diff options
author | Matti Vaittinen <[email protected]> | 2020-01-20 15:45:11 +0200 |
---|---|---|
committer | Lee Jones <[email protected]> | 2020-01-24 07:23:01 +0000 |
commit | 6c883472e1c11cb05561b6dd0c28bb037c2bf2de (patch) | |
tree | 0f58d22abed4cfb1521886ec6e21e5202339cbcc | |
parent | 21b72156ede8b7da0367c6338574c1bc40439157 (diff) |
mfd: bd70528: Fix hour register mask
When RTC is used in 24H mode (and it is by this driver) the maximum
hour value is 24 in BCD. This occupies bits [5:0] - which means
correct mask for HOUR register is 0x3f not 0x1f. Fix the mask
Fixes: 32a4a4ebf768 ("rtc: bd70528: Initial support for ROHM bd70528 RTC")
Signed-off-by: Matti Vaittinen <[email protected]>
Acked-by: Alexandre Belloni <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
-rw-r--r-- | include/linux/mfd/rohm-bd70528.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mfd/rohm-bd70528.h b/include/linux/mfd/rohm-bd70528.h index 2ad2320d0a96..edae6f7afd8e 100644 --- a/include/linux/mfd/rohm-bd70528.h +++ b/include/linux/mfd/rohm-bd70528.h @@ -311,7 +311,7 @@ enum { #define BD70528_MASK_RTC_MINUTE 0x7f #define BD70528_MASK_RTC_HOUR_24H 0x80 #define BD70528_MASK_RTC_HOUR_PM 0x20 -#define BD70528_MASK_RTC_HOUR 0x1f +#define BD70528_MASK_RTC_HOUR 0x3f #define BD70528_MASK_RTC_DAY 0x3f #define BD70528_MASK_RTC_WEEK 0x07 #define BD70528_MASK_RTC_MONTH 0x1f |