aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoniu Miclaus <[email protected]>2024-02-19 11:16:15 +0200
committerAlexandre Belloni <[email protected]>2024-02-29 22:40:33 +0100
commitc12e67e076cbcb86fd9c3cb003a344ec684138a6 (patch)
tree508cf2e9cebcb951ef91d89a2f18f0f9f8fa54df
parent544c42f798e1651dcb04fb0395219bf0f1c2607e (diff)
rtc: max31335: fix interrupt status reg
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 <[email protected]> Reviewed-by: Nuno Sa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
-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 */