]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: initialize output parameter for read alarm to "uninitialized"
authorUwe Kleine-König <uwe@kleine-koenig.org>
Wed, 11 May 2016 07:11:23 +0000 (09:11 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 29 May 2016 23:37:11 +0000 (01:37 +0200)
commitd68778b80dd78ad6ed998397af182163d0ef16b0
treea3d4d8140133aec887dce8b3b9a9888ef2005c9b
parent1a695a905c18548062509178b98bc91e67510864
rtc: initialize output parameter for read alarm to "uninitialized"

rtc drivers are supposed to set values they don't support to -1. To
simplify this for drivers and also make it harder for them to get it
wrong initialize the values to -1.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/interface.c