iio: pressure: mpl115: don't set unused i2c clientdata
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 15 Jan 2016 16:00:02 +0000 (01:00 +0900)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Jan 2016 16:27:11 +0000 (16:27 +0000)
mpl115 sets i2c clientdata, but it is not used anywhere.  So remove it.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/mpl115.c

index f5ecd6e19f5de725e715e547a5527f5875050561..3e1e33535fe124eec00d497f8a7b9681bf492de9 100644 (file)
@@ -163,7 +163,6 @@ static int mpl115_probe(struct i2c_client *client,
        data->client = client;
        mutex_init(&data->lock);
 
-       i2c_set_clientdata(client, indio_dev);
        indio_dev->info = &mpl115_info;
        indio_dev->name = id->name;
        indio_dev->dev.parent = &client->dev;