diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-06-26 13:29:30 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-08-15 22:30:00 +0100 |
commit | 90e7853ce051bca3690d3518e523f427e55c4806 (patch) | |
tree | ddc4f620439129506657a14a430d220400f7a5a7 | |
parent | 9eee2fc4a670d70ded6cc88c42d760338ce96918 (diff) | |
download | linux-90e7853ce051bca3690d3518e523f427e55c4806.tar.gz linux-90e7853ce051bca3690d3518e523f427e55c4806.tar.bz2 linux-90e7853ce051bca3690d3518e523f427e55c4806.zip |
staging: iio: cdc: ad7746: Drop unused i2c_set_clientdata()
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
-rw-r--r-- | drivers/staging/iio/cdc/ad7746.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 3e4448f3f3dd..81be645f08c5 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -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; |