]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: isl1208: avoid possible sysfs race
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 15 Sep 2018 11:29:56 +0000 (13:29 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:14:38 +0000 (14:14 +0200)
commit1b4c794fda583edabe864ac466e9cd43c707be80
treec3c6ae9359c4d245d3b70c84d34bcb25eecbe0d2
parentf1c8bc332e6dacac221d0d6304f4a3e99b756e2f
rtc: isl1208: avoid possible sysfs race

Use rtc_add_group to add the common sysfs group to avoid a possible race
condition.

[Denis.Osterland@diehl.com: use to_i2c_client(dev->parent)]
Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
The move of atrim, dtrim usr sysfs properties from i2c device
to rtc device require to access them via dev->parent.
This patch also aligns timestamp0.
drivers/rtc/rtc-isl1208.c