]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: isl12022: use dev_set_drvdata() instead of i2c_set_clientdata()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 21 Sep 2022 11:46:21 +0000 (13:46 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 12 Oct 2022 22:17:21 +0000 (00:17 +0200)
commite350f2a2b26c0f72eec8c52e39ecdac5a11c1a27
tree748f583a1574e827e9338c66804dda1ea37c29a9
parent9fc73f0fbb9358ec1eaa1b923b0156f40f70b023
rtc: isl12022: use dev_set_drvdata() instead of i2c_set_clientdata()

As another preparation for removing direct references to the
i2c_client in the helper functions, stash a pointer to the private
data via dev_set_drvdata() instead of i2c_set_clientdata().

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20220921114624.3250848-7-linux@rasmusvillemoes.dk
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl12022.c