rtc: max31335: Fix ignored return value in set_alarm
Return the result from regmap_update_bits() instead of ignoring it
and always returning 0.
Fixes: dedaf03b99 ("rtc: max31335: add driver support")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20251128-max31335-handler-error-v1-1-6b6f7f78dbda@analog.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
pull/1354/merge
parent
d1220e47e4
commit
f07640f9fb
|
|
@ -391,10 +391,8 @@ static int max31335_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = regmap_update_bits(max31335->regmap, max31335->chip->int_status_reg,
|
||||
MAX31335_STATUS1_A1F, 0);
|
||||
|
||||
return 0;
|
||||
return regmap_update_bits(max31335->regmap, max31335->chip->int_status_reg,
|
||||
MAX31335_STATUS1_A1F, 0);
|
||||
}
|
||||
|
||||
static int max31335_alarm_irq_enable(struct device *dev, unsigned int enabled)
|
||||
|
|
|
|||
Loading…
Reference in New Issue