summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure/ms5611_spi.c
diff options
context:
space:
mode:
authorGrégor Boirie <gregor.boirie@parrot.com>2016-02-17 20:52:50 +0300
committerJonathan Cameron <jic23@kernel.org>2016-02-24 23:40:46 +0300
commiteac635ebad41b4fa960386fd0b042764f275b4d4 (patch)
treeb24b42f62461d30e3779950fd76909370f664cfa /drivers/iio/pressure/ms5611_spi.c
parentce5b8fc163619067aab157008daf5719cd38fdd1 (diff)
downloadlinux-eac635ebad41b4fa960386fd0b042764f275b4d4.tar.xz
iio:pressure:ms5611: use probed device name
Use name of probed device instead of driver's one when registering device. Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/ms5611_spi.c')
-rw-r--r--drivers/iio/pressure/ms5611_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/pressure/ms5611_spi.c b/drivers/iio/pressure/ms5611_spi.c
index c4bf4e8f7c5c..5cc009e85f0e 100644
--- a/drivers/iio/pressure/ms5611_spi.c
+++ b/drivers/iio/pressure/ms5611_spi.c
@@ -105,8 +105,8 @@ static int ms5611_spi_probe(struct spi_device *spi)
st->read_adc_temp_and_pressure = ms5611_spi_read_adc_temp_and_pressure;
st->client = spi;
- return ms5611_probe(indio_dev, &spi->dev,
- spi_get_device_id(spi)->driver_data);
+ return ms5611_probe(indio_dev, &spi->dev, spi_get_device_id(spi)->name,
+ spi_get_device_id(spi)->driver_data);
}
static int ms5611_spi_remove(struct spi_device *spi)