diff options
author | Grégor Boirie | 2016-02-17 18:52:50 +0100 |
---|---|---|
committer | Jonathan Cameron | 2016-02-24 20:40:46 +0000 |
commit | eac635ebad41b4fa960386fd0b042764f275b4d4 (patch) | |
tree | b24b42f62461d30e3779950fd76909370f664cfa /drivers/iio/pressure/ms5611_i2c.c | |
parent | ce5b8fc163619067aab157008daf5719cd38fdd1 (diff) |
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.c | 2 |
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) |