aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/ms5611_i2c.c
diff options
context:
space:
mode:
authorGrégor Boirie <gregor.boirie@parrot.com>2016-02-17 18:52:50 +0100
committerJonathan Cameron <jic23@kernel.org>2016-02-24 20:40:46 +0000
commiteac635ebad41b4fa960386fd0b042764f275b4d4 (patch)
treeb24b42f62461d30e3779950fd76909370f664cfa /drivers/iio/pressure/ms5611_i2c.c
parentiio:pressure:ms5611: fix ms5607 temp compensation (diff)
downloadlinux-dev-eac635ebad41b4fa960386fd0b042764f275b4d4.tar.xz
linux-dev-eac635ebad41b4fa960386fd0b042764f275b4d4.zip
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_i2c.c')
-rw-r--r--drivers/iio/pressure/ms5611_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/pressure/ms5611_i2c.c b/drivers/iio/pressure/ms5611_i2c.c
index 42706a89c6ee..ae6753941fab 100644
--- a/drivers/iio/pressure/ms5611_i2c.c
+++ b/drivers/iio/pressure/ms5611_i2c.c
@@ -105,7 +105,7 @@ static int ms5611_i2c_probe(struct i2c_client *client,
st->read_adc_temp_and_pressure = ms5611_i2c_read_adc_temp_and_pressure;
st->client = client;
- return ms5611_probe(indio_dev, &client->dev, id->driver_data);
+ return ms5611_probe(indio_dev, &client->dev, id->name, id->driver_data);
}
static int ms5611_i2c_remove(struct i2c_client *client)