linux/drivers/iio/gyro
Linus Walleij 2d7768a872 iio: st_sensors: add devicetree probing support
The I2C devices that make up the STMicroelectronics MEMS sensors
may be sneakily enabled by cleverly giving the device node the same
name as a string match from the platform device ID table. However
the right method is to use the compatible string.

On detection, the ST sensors use the ID string to probe and
instatiate the right sensor driver, so pass the kernel-internal ID
string in the .data field of the OF match table, and set the I2C
client name to this name when a compatible match is used.

This avoids having misc Linux-specific strings floating around in
the device tree.

Cc: Lee Jones <lee.jones@linaro.org>
Cc: Denis CIOCCA <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-07-11 21:09:49 +01:00
..
adis16080.c iio:adis16080: Use spi_sync_transfer() 2013-10-05 11:58:54 +01:00
adis16130.c iio: gyro: adis16130: Use devm_iio_device_register 2013-11-24 21:07:17 +00:00
adis16136.c iio: gyro: adis16136: Use devm_iio_device_alloc 2013-08-17 15:50:54 +01:00
adis16260.c iio: adis: Switch sampling frequency attr to core support. 2014-07-07 09:44:17 +01:00
adxrs450.c iio: gyro: adxrs450: Use devm_iio_device_register 2013-11-24 21:07:18 +00:00
hid-sensor-gyro-3d.c iio: hid-sensors: Gyro 3D: Raw read support 2014-05-05 10:59:50 +01:00
itg3200_buffer.c iio:itg3200: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:56 +01:00
itg3200_core.c iio: gyro: itg3200 switch sampling frequency attr to core support. 2014-07-07 09:41:32 +01:00
Kconfig iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00
Makefile staging:iio:adis16260: Move out of staging 2013-08-03 18:41:22 +01:00
st_gyro_buffer.c iio:st_gyro: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:46 +01:00
st_gyro_core.c iio:st sensors: remove custom sampling frequence attribute in favour of core support. 2014-07-07 09:39:57 +01:00
st_gyro_i2c.c iio: st_sensors: add devicetree probing support 2014-07-11 21:09:49 +01:00
st_gyro_spi.c iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00
st_gyro.h iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00