staging: iio: cdc: ad7746: Drop unused i2c_set_clientdata()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 26 Jun 2022 12:29:30 +0000 (13:29 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 15 Aug 2022 21:30:00 +0000 (22:30 +0100)
As the comment states, this was only used in remove() and now
there is no explicit remove() function to make use of it.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220626122938.582107-10-jic23@kernel.org
drivers/staging/iio/cdc/ad7746.c

index 3e4448f..81be645 100644 (file)
@@ -708,8 +708,6 @@ static int ad7746_probe(struct i2c_client *client,
                return -ENOMEM;
        chip = iio_priv(indio_dev);
        mutex_init(&chip->lock);
-       /* this is only used for device removal purposes */
-       i2c_set_clientdata(client, indio_dev);
 
        chip->client = client;
        chip->capdac_set = -1;