mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-12 04:04:02 -05:00
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>
This commit is contained in:
committed by
Wolfram Sang
parent
3d43273d7d
commit
99ad11e06b
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user