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>
This commit is contained in:

committed by
Jonathan Cameron

parent
ce5b8fc163
commit
eac635ebad
@@ -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)
|
||||
|
Reference in New Issue
Block a user