linux/drivers/iio/magnetometer
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
..
ak8975.c Second round of new drivers and cleanups for IIO in the 3.17 cycle. 2014-06-29 09:49:28 -07:00
ak09911.c iio: AK09911 : 3 axis compass support 2014-06-16 20:55:24 +01:00
hid-sensor-magn-3d.c iio: hid-sensors: Compass 3D: Raw read support 2014-05-05 10:59:52 +01:00
Kconfig iio: AK09911 : 3 axis compass support 2014-06-16 20:55:24 +01:00
mag3110.c iio:magnetometer:mag3110: Enable user offset calibration 2014-05-03 11:27:52 +01:00
Makefile iio: AK09911 : 3 axis compass support 2014-06-16 20:55:24 +01:00
st_magn_buffer.c iio:st_magn: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:13:50 +01:00
st_magn_core.c iio:st sensors: remove custom sampling frequence attribute in favour of core support. 2014-07-07 09:39:57 +01:00
st_magn_i2c.c iio: st_sensors: add devicetree probing support 2014-07-11 21:09:49 +01:00
st_magn_spi.c iio: magnetometer: st_magn: Use devm_iio_device_alloc 2013-08-03 18:43:14 +01:00
st_magn.h iio: Added ST-sensors platform data to select the DRDY interrupt pin 2013-08-03 18:40:28 +01:00