linux/drivers/iio/common/st_sensors
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
..
Kconfig
Makefile
st_sensors_buffer.c iio:st_sensors: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:56 +01:00
st_sensors_core.c iio: st_sensors: get platform data from device tree 2014-07-07 13:11:28 +01:00
st_sensors_i2c.c iio: st_sensors: add devicetree probing support 2014-07-11 21:09:49 +01:00
st_sensors_spi.c iio:common: Use spi_sync_transfer() in STMicroelectronics common library 2013-03-16 10:18:10 +00:00
st_sensors_trigger.c iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00