diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2017-06-20 21:52:08 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-07-01 10:16:56 +0100 |
commit | 250bbbdbed93ca27c9f4d445c960a87d9f7e2044 (patch) | |
tree | 99eb94ced6fda52ccd6b0089376ea74e69eccf48 /include/linux/iio/common/st_sensors_i2c.h | |
parent | 13718564167da80b6169809185b4c5a32497d0c1 (diff) | |
download | talos-obmc-linux-250bbbdbed93ca27c9f4d445c960a87d9f7e2044.tar.gz talos-obmc-linux-250bbbdbed93ca27c9f4d445c960a87d9f7e2044.zip |
iio: common: st_sensors: move st_sensors_of_i2c_probe() in common code
Move st_sensors_of_i2c_probe() in st_sensors_core and rename it in
st_sensors_of_name_probe(). That change is necessary to add device-tree
support in spi code otherwise the rest of the autodetection will fail
since spi->modalias (and indio_dev->name) will be set using compatible
string value that differs from standard sensor name
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/common/st_sensors_i2c.h')
-rw-r--r-- | include/linux/iio/common/st_sensors_i2c.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/iio/common/st_sensors_i2c.h b/include/linux/iio/common/st_sensors_i2c.h index 254de3c7dde8..0a2c25e06d1f 100644 --- a/include/linux/iio/common/st_sensors_i2c.h +++ b/include/linux/iio/common/st_sensors_i2c.h @@ -18,16 +18,6 @@ void st_sensors_i2c_configure(struct iio_dev *indio_dev, struct i2c_client *client, struct st_sensor_data *sdata); -#ifdef CONFIG_OF -void st_sensors_of_i2c_probe(struct i2c_client *client, - const struct of_device_id *match); -#else -static inline void st_sensors_of_i2c_probe(struct i2c_client *client, - const struct of_device_id *match) -{ -} -#endif - #ifdef CONFIG_ACPI int st_sensors_match_acpi_device(struct device *dev); #else |