summaryrefslogtreecommitdiff
path: root/drivers/iio/dac/ti-dac082s085.c
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@ew.tq-group.com>2022-09-21 09:41:41 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-11-16 23:22:38 +0100
commita6ceee26fd5ed9b5bd37322b1ca88e4548cee4a3 (patch)
treeb4ee0c87ee00a328155efa0a42a65c5a6ca8d8f7 /drivers/iio/dac/ti-dac082s085.c
parentfe0157ba679dc95407dd5eae6550a4ceaea75040 (diff)
downloadlinux-next-a6ceee26fd5ed9b5bd37322b1ca88e4548cee4a3.tar.gz
rtc: pcf85063: Fix reading alarm
If the alarms are disabled the topmost bit (AEN_*) is set in the alarm registers. This is also interpreted in BCD number leading to this warning: rtc rtc0: invalid alarm value: 2022-09-21T80:80:80 Fix this by masking alarm enabling and reserved bits. Fixes: 05cb3a56ee8c ("rtc: pcf85063: add alarm support") Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20220921074141.3903104-1-alexander.stein@ew.tq-group.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/iio/dac/ti-dac082s085.c')
0 files changed, 0 insertions, 0 deletions