diff options
author | Grégor Boirie <gregor.boirie@parrot.com> | 2016-02-17 20:52:50 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-02-24 23:40:46 +0300 |
commit | eac635ebad41b4fa960386fd0b042764f275b4d4 (patch) | |
tree | b24b42f62461d30e3779950fd76909370f664cfa /drivers/iio/pressure/ms5611.h | |
parent | ce5b8fc163619067aab157008daf5719cd38fdd1 (diff) | |
download | linux-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.h')
-rw-r--r-- | drivers/iio/pressure/ms5611.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/pressure/ms5611.h b/drivers/iio/pressure/ms5611.h index 2d70dd6e14b0..8b08e4b7e3a9 100644 --- a/drivers/iio/pressure/ms5611.h +++ b/drivers/iio/pressure/ms5611.h @@ -51,7 +51,8 @@ struct ms5611_state { struct ms5611_chip_info *chip_info; }; -int ms5611_probe(struct iio_dev *indio_dev, struct device *dev, int type); +int ms5611_probe(struct iio_dev *indio_dev, struct device *dev, + const char* name, int type); int ms5611_remove(struct iio_dev *indio_dev); #endif /* _MS5611_H */ |