summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2024-02-19 12:16:15 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:17:30 +0300
commit7116c3a91795ceae22fdfa5c029d03e656541c48 (patch)
tree2383ae290f134d8c022da32e88476891ef3f50d4 /drivers/rtc
parenteedf7a6705e4b3247272e9f96383ae839a673aa4 (diff)
downloadlinux-7116c3a91795ceae22fdfa5c029d03e656541c48.tar.xz
rtc: max31335: fix interrupt status reg
[ Upstream commit c12e67e076cbcb86fd9c3cb003a344ec684138a6 ] Fix the register value comparison in the `max31335_volatile_reg` function for the interrupt status register. MAX31335_STATUS1 macro definition corresponds to the actual interrupt status register. Fixes: dedaf03b99d6 ("rtc: max31335: add driver support") Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240219091616.24480-1-antoniu.miclaus@analog.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-max31335.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-max31335.c b/drivers/rtc/rtc-max31335.c
index 402fda8fd548..a2441e5c2c74 100644
--- a/drivers/rtc/rtc-max31335.c
+++ b/drivers/rtc/rtc-max31335.c
@@ -204,7 +204,7 @@ static bool max31335_volatile_reg(struct device *dev, unsigned int reg)
return true;
/* interrupt status register */
- if (reg == MAX31335_INT_EN1_A1IE)
+ if (reg == MAX31335_STATUS1)
return true;
/* temperature registers */