]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: s35390a: clarify INT2 pin output modes
authorRichard Leitner <richard.leitner@skidata.com>
Thu, 23 May 2019 11:54:48 +0000 (13:54 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 23 May 2019 15:47:58 +0000 (17:47 +0200)
commitc2edd232fbc35f420147b3f9feabaa411a7b2f49
tree417d2f6fcdb471ba2bd9e5f41e7b50e00b866aa1
parenta63848e34b1c93ef0ad9773dbcff151fd3549ad0
rtc: s35390a: clarify INT2 pin output modes

Fix the INT2 mode mask to not include the "TEST" flag. Furthermore
remove the not needed reversion of bits when parsing the INT2 modes.
Instead reverse the INT2_MODE defines to match the bit order from the
datasheet.

Additionally mention the flag names from the datasheet for the different
modes in the comments.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-s35390a.c