OSDN Git Service

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)
commita86bd9044b33ae60571de2759b3803f530bccb68
tree417d2f6fcdb471ba2bd9e5f41e7b50e00b866aa1
parentc19623db3766c5710c3032ab0b1ff98c4935a58a
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