rtc: isl12022: Get rid of unneeded private struct isl12022
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Jan 2023 14:08:02 +0000 (16:08 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 22 Feb 2023 20:06:29 +0000 (21:06 +0100)
commitf525b210e9d4dcefb88594d50e426068e62840f4
tree8ef17de510135610a4cd8dee69a3167fc57af944
parentfd9a6a13949af81062f4cd04f2c1b28ca5311e71
rtc: isl12022: Get rid of unneeded private struct isl12022

First of all, the struct rtc_device pointer is kept in the managed
resources, no need to keep it outside (no users in the driver).

Second, replace private struct isl12022 with a regmap.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20230110140806.87432-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl12022.c