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

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.com


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 544c42f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */