rtc: rv3032: allow setting BSM
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:19:33 +0000 (17:19 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:20:50 +0000 (17:20 +0200)
commit6084eac38e765c5ee1338f4e9b1ad3321f4c53eb
tree1d44d9cd084bcfc31100aac5669356557d3a7a2e
parent018d959ba7ffcadcc21e007f81c4b2b7a2b47447
rtc: rv3032: allow setting BSM

Backup Switch Mode is currently set properly when the trickle charger is
enabled. However, in the case of a non-rechargeable battery, it is
necessary to be able to enable it, only allow that when the trickle charger
is disabled.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018151933.76865-8-alexandre.belloni@bootlin.com
drivers/rtc/rtc-rv3032.c