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: NAlexandre Belloni <alexandre.belloni@bootlin.com>
Showing
想要评论请 注册 或 登录