mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
rtc: max31335: fix interrupt status reg
[ Upstream commitc12e67e076
] 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:dedaf03b99
("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>
This commit is contained in:
parent
eedf7a6705
commit
7116c3a917
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue