OSDN Git Service

rtc: pcf2123: port to regmap
authorDylan Howey <Dylan.Howey@tennantco.com>
Fri, 3 May 2019 19:52:10 +0000 (19:52 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 19 Jun 2019 14:20:22 +0000 (16:20 +0200)
commit790d033933b8a1d6bd537bdd6c08d9af745d9b78
treebbafe0675abef89a2cb6e952c33ea51b38f45994
parent2372a7d32b694e39bfac54d7f4dd7c0edb02d19e
rtc: pcf2123: port to regmap

Also remove pcf2123_delay_trec. This claimed to add a 30ns delay to SPI
writes, but I could not see any reference to this requirement in the
datasheet. Closest thing I could find to a requirement are timings for the
SPI chip enable line, which cannot be controlled by this driver (the ndelay
came after the call to spi_write_then_read, which means it would sleep
after CE has already gone inactive). Things seem to work fine without it.

Signed-off-by: Dylan Howey <Dylan.Howey@tennantco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf2123.c