summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-02 11:13:59 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-07-07 17:46:25 +0100
commit5f0d4fd6b2c6f4ce14af861b17b9bebc8ba1265a (patch)
treebfb7b81cc3dcc01898bab3636da08fafdba8c8ac /drivers/iio/dac
parent366995df8b9ed7743386813412dcfa991c170d28 (diff)
downloadlinux-5f0d4fd6b2c6f4ce14af861b17b9bebc8ba1265a.tar.gz
linux-5f0d4fd6b2c6f4ce14af861b17b9bebc8ba1265a.tar.bz2
linux-5f0d4fd6b2c6f4ce14af861b17b9bebc8ba1265a.zip
iio: dac: ltc2632 remove redundant pointer chip_info and spi_dev_id
Pointers chip_info and spi_dev_id are being assigned but are never used hence they are redundant and can be removed. Cleans up clang warning: warning: variable 'chip_info' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac')
-rw-r--r--drivers/iio/dac/ltc2632.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iio/dac/ltc2632.c b/drivers/iio/dac/ltc2632.c
index cca278eaa138..28e9b7656b20 100644
--- a/drivers/iio/dac/ltc2632.c
+++ b/drivers/iio/dac/ltc2632.c
@@ -87,12 +87,7 @@ static int ltc2632_read_raw(struct iio_dev *indio_dev,
int *val2,
long m)
{
- struct ltc2632_chip_info *chip_info;
-
const struct ltc2632_state *st = iio_priv(indio_dev);
- const struct spi_device_id *spi_dev_id = spi_get_device_id(st->spi_dev);
-
- chip_info = (struct ltc2632_chip_info *)spi_dev_id->driver_data;
switch (m) {
case IIO_CHAN_INFO_SCALE: