diff options
author | Guiting Shen <aarongt.shen@gmail.com> | 2023-04-25 05:45:26 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-06-15 11:19:37 +0300 |
commit | 0c5dc500abf81e296959b289e72ac7f38fd8c087 (patch) | |
tree | 362929957cc3791e14ded143eaf253e91a747628 /drivers/mfd/lm3533-core.c | |
parent | df2aac1573b57cde4475b587fbb22e1256080bac (diff) | |
download | linux-0c5dc500abf81e296959b289e72ac7f38fd8c087.tar.xz |
mfd: Remove redundant dev_set_drvdata() from I2C drivers
the i2c_set_clientdata() is the inline function which is complemented by
the dev_set_drvdata() internally. Do not need to use i2c_set_clientdata()
and dev_set_drvdata() at the same time.
Signed-off-by: Guiting Shen <aarongt.shen@gmail.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230425024526.6443-1-aarongt.shen@gmail.com
Diffstat (limited to 'drivers/mfd/lm3533-core.c')
-rw-r--r-- | drivers/mfd/lm3533-core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/lm3533-core.c b/drivers/mfd/lm3533-core.c index 946f94f3a3c3..03830aa4979a 100644 --- a/drivers/mfd/lm3533-core.c +++ b/drivers/mfd/lm3533-core.c @@ -485,8 +485,6 @@ static int lm3533_device_init(struct lm3533 *lm3533) lm3533->gpio_hwen = pdata->gpio_hwen; - dev_set_drvdata(lm3533->dev, lm3533); - if (gpio_is_valid(lm3533->gpio_hwen)) { ret = devm_gpio_request_one(lm3533->dev, lm3533->gpio_hwen, GPIOF_OUT_INIT_LOW, "lm3533-hwen"); |