]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1307: use rtc_add_group
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 20 Sep 2018 14:35:26 +0000 (16:35 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:21:01 +0000 (14:21 +0200)
commit87703165d54f7b960f3e1558fa76815eaba4960b
treec9468825c5b51dd5a08d31d4ebc211faedfe5f87
parent460a00b57b0ff8b274fc72e1fc023f234ff4f6d8
rtc: ds1307: use rtc_add_group

Register frequency test using rtc_add_group to avoid a possible race
condition and simplify the code.

This also moves the attribute to its proper location under the rtc device
instead of the i2c parent device.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1307.c