commit | 82e2d43f6315d7ae8cca1d00c94f25df0f17eb85 | [log] [tgz] |
---|---|---|
author | Heiner Kallweit <hkallweit1@gmail.com> | Wed Jul 12 07:49:37 2017 +0200 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Fri Sep 01 01:10:15 2017 +0200 |
tree | d4b45ee711b5bcd1c15b4de04f40e1e662f5180a | |
parent | 7624df482d7aba599a92ebe1a1fab3e27749b658 [diff] |
rtc: ds1307: improve irq setup Change the usage of variable want_irq to reflect its name. Don't set it to true in case wakeup is enabled but no interrupt number is given. In addition set variable ds1307_can_wakeup_device if chip->alarm is set only. This allows to simplify the code and make it better understandable. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>