summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-05-26 15:12:13 +0200
committerWolfram Sang <wsa@kernel.org>2022-06-08 22:39:33 +0200
commit99ad11e06be8ad29abee1ec3b8b22dfe77bbabec (patch)
tree7bf975d668175dff8c4c72838c7554d6c8a05f16 /drivers/i2c
parenti2c: mxs: Silence a clang warning (diff)
downloadlinux-99ad11e06be8ad29abee1ec3b8b22dfe77bbabec.tar.xz
linux-99ad11e06be8ad29abee1ec3b8b22dfe77bbabec.zip
i2c: dummy: Drop no-op remove function
A remove callback that just returns 0 is equivalent to no callback at all as can be seen in i2c_device_remove(). So simplify accordingly. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-core-base.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index d43db2c3876e..8ae47e0bbd67 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -1023,15 +1023,9 @@ static int dummy_probe(struct i2c_client *client,
return 0;
}
-static int dummy_remove(struct i2c_client *client)
-{
- return 0;
-}
-
static struct i2c_driver dummy_driver = {
.driver.name = "dummy",
.probe = dummy_probe,
- .remove = dummy_remove,
.id_table = dummy_id,
};