Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Antoniu Miclaus and committed by
Alexandre Belloni
c12e67e0 544c42f7

+1 -1
+1 -1
drivers/rtc/rtc-max31335.c
··· 204 204 return true; 205 205 206 206 /* interrupt status register */ 207 - if (reg == MAX31335_INT_EN1_A1IE) 207 + if (reg == MAX31335_STATUS1) 208 208 return true; 209 209 210 210 /* temperature registers */