iio: common: st_sensors: move st_sensors_of_i2c_probe() in common code
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Tue, 20 Jun 2017 19:52:08 +0000 (21:52 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Jul 2017 09:16:56 +0000 (10:16 +0100)
commit250bbbdbed93ca27c9f4d445c960a87d9f7e2044
tree99eb94ced6fda52ccd6b0089376ea74e69eccf48
parent13718564167da80b6169809185b4c5a32497d0c1
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>
drivers/iio/accel/st_accel_i2c.c
drivers/iio/common/st_sensors/st_sensors_core.c
drivers/iio/common/st_sensors/st_sensors_i2c.c
drivers/iio/gyro/st_gyro_i2c.c
drivers/iio/magnetometer/st_magn_i2c.c
drivers/iio/pressure/st_pressure_i2c.c
include/linux/iio/common/st_sensors.h
include/linux/iio/common/st_sensors_i2c.h