diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-09-17 14:46:56 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-09-29 23:18:10 +0300 |
commit | ba1bcafb29571f525bf563972e4241998db74e98 (patch) | |
tree | 144c415015ebda7eec2438bd34d54f80337dd268 | |
parent | 0026f1604c9ba1ae8108d4977da0366c283552bc (diff) | |
download | linux-ba1bcafb29571f525bf563972e4241998db74e98.tar.xz |
rtc: rx8010: rename rx8010_init_client() to rx8010_init()
Since the switch to using regmap this function no longer takes the
I2C client struct as argument nor do we even interact with the client
anywhere other than when creating the regmap.
Rename it to a less misleading name: "rx8010_init()".
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200917114656.9036-1-brgl@bgdev.pl
-rw-r--r-- | drivers/rtc/rtc-rx8010.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c index 01e9017d4025..dca41a2a39b2 100644 --- a/drivers/rtc/rtc-rx8010.c +++ b/drivers/rtc/rtc-rx8010.c @@ -169,7 +169,7 @@ static int rx8010_set_time(struct device *dev, struct rtc_time *dt) return 0; } -static int rx8010_init_client(struct device *dev) +static int rx8010_init(struct device *dev) { struct rx8010_data *rx8010 = dev_get_drvdata(dev); u8 ctrl[2]; @@ -391,7 +391,7 @@ static int rx8010_probe(struct i2c_client *client) if (IS_ERR(rx8010->regs)) return PTR_ERR(rx8010->regs); - err = rx8010_init_client(dev); + err = rx8010_init(dev); if (err) return err; |