Commit c12e67e0 authored by Antoniu Miclaus's avatar Antoniu Miclaus Committed by Alexandre Belloni

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: dedaf03b ("rtc: max31335: add driver support")
Signed-off-by: default avatarAntoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: default avatarNuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240219091616.24480-1-antoniu.miclaus@analog.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 544c42f7
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment