summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/88pm860x-core.c
diff options
context:
space:
mode:
authorGuiting Shen <aarongt.shen@gmail.com>2023-04-25 10:45:26 +0800
committerLee Jones <lee@kernel.org>2023-06-15 09:19:37 +0100
commit0c5dc500abf81e296959b289e72ac7f38fd8c087 (patch)
tree362929957cc3791e14ded143eaf253e91a747628 /drivers/mfd/88pm860x-core.c
parentdf2aac1573b57cde4475b587fbb22e1256080bac (diff)
downloadlinux-0c5dc500abf81e296959b289e72ac7f38fd8c087.tar.gz
linux-0c5dc500abf81e296959b289e72ac7f38fd8c087.tar.bz2
linux-0c5dc500abf81e296959b289e72ac7f38fd8c087.zip
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/88pm860x-core.c')
-rw-r--r--drivers/mfd/88pm860x-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c
index aabac37c3502..26d1ffefadc1 100644
--- a/drivers/mfd/88pm860x-core.c
+++ b/drivers/mfd/88pm860x-core.c
@@ -1166,7 +1166,6 @@ static int pm860x_probe(struct i2c_client *client)
chip->client = client;
i2c_set_clientdata(client, chip);
chip->dev = &client->dev;
- dev_set_drvdata(chip->dev, chip);
/*
* Both client and companion client shares same platform driver.