rtc: rx8010: convert to using regmap
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Sep 2020 15:46:00 +0000 (17:46 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Sep 2020 08:50:38 +0000 (10:50 +0200)
commit9868bc1ce272dc0387488e779c585e7a12cf7a1b
treee91da64b952d214dbd5f60398422c7924551de8b
parentcee015d90d96495d8376871af0f1a33027303d5e
rtc: rx8010: convert to using regmap

This driver requires SMBUS to work. We can relax this requirement if we
switch to using i2c regmap and let the regmap sub-system figure out how
to talk to the bus.

This also has the advantage of shrinking the code for register updates.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200914154601.32245-14-brgl@bgdev.pl
drivers/rtc/rtc-rx8010.c