linux/drivers/iio/accel
Andy Shevchenko ed3edc0909 iio: accel: mma9551: use NULL for GPIO connection ID
While using GPIO library API we might get into troubles in the future,
because we can't rely on label name in the driver since vendor firmware
might provide any GPIO pin there, e.g. "reset", and even mark it in _DSD
(in which case the request will fail).

To avoid inconsistency and potential issues we have two options:
a) generate GPIO ACPI mapping table and supply it via
acpi_dev_add_driver_gpios(), or
b) just pass NULL as connection ID.

The b) approach is much simpler and would work since the driver relies
on GPIO indices only. Moreover, the _CRS fallback mechanism, when
requesting GPIO, is going to be stricter, and supplying non-NULL
connection ID when neither _DSD, nor GPIO ACPI mapping is present, will
make request fail.

See
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/commit/?h=for-next&id=ed7fcf1ed5ea4ea01243995ae085757a77cf0f3e for more background.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-06-11 16:05:53 +01:00
..
Kconfig iio: accel: adxl345: Add SPI support 2017-03-04 16:49:28 +00:00
Makefile iio: accel: adxl345: Add SPI support 2017-03-04 16:49:28 +00:00
adxl345.h iio: accel: adxl345: Split driver into core and I2C 2017-03-04 16:45:08 +00:00
adxl345_core.c iio: accel: adxl345: Split driver into core and I2C 2017-03-04 16:45:08 +00:00
adxl345_i2c.c iio: accel: adxl345: Split driver into core and I2C 2017-03-04 16:45:08 +00:00
adxl345_spi.c iio: accel: adxl345: Add SPI support 2017-03-04 16:49:28 +00:00
bma180.c Revert "iio: accel: bma180: Add support for BMA250E" 2017-06-11 15:07:41 +01:00
bma220_spi.c iio: accel: bma220_spi: set up buffer timestamps for non-zero values 2016-08-15 15:39:18 +01:00
bmc150-accel-core.c iio:buffer: Introduced a function to assign the buffer specific attrs. 2017-01-10 19:54:50 +00:00
bmc150-accel-i2c.c iio: accel: bmc150: use common definition for regmap conf 2016-04-03 11:24:52 +01:00
bmc150-accel-spi.c iio: accel: bmc150: use common definition for regmap conf 2016-04-03 11:24:52 +01:00
bmc150-accel.h iio: accel: bmc150: use common definition for regmap conf 2016-04-03 11:24:52 +01:00
da280.c iio: accel: Add driver for the MiraMEMS DA280 3-axis 14-bit digital accelerometer 2016-10-11 19:40:15 +01:00
da311.c iio: accel: Add driver for the MiraMEMS DA311 3-axis 12-bit digital accelerometer 2016-10-11 19:39:14 +01:00
dmard06.c iio: accel: Add support for Domintech DMARD06 accelerometer 2016-08-21 10:52:02 +01:00
dmard09.c iio: accel: add support for the Domintech DMARD09 3-axis accelerometer 2016-08-21 10:52:08 +01:00
dmard10.c iio: accel: Add driver for dmard10 3-axis Accelerometer 2016-10-11 19:38:32 +01:00
hid-sensor-accel-3d.c iio: hid-sensor-accel-3d: Drop unnecessary static 2017-05-07 13:56:36 +01:00
kxcjk-1013.c iio: accel: kxcjk-1013: add the "KIOX000A" ACPI id 2016-07-24 19:58:40 +01:00
kxsd9-i2c.c iio: accel: kxsd9: Deploy system and runtime PM 2016-09-18 11:35:59 +01:00
kxsd9-spi.c iio: accel: kxsd9: Deploy system and runtime PM 2016-09-18 11:35:59 +01:00
kxsd9.c iio: accel: kxsd9: Support reading a mounting matrix 2016-09-18 11:36:32 +01:00
kxsd9.h iio: accel: kxsd9: Deploy system and runtime PM 2016-09-18 11:35:59 +01:00
mc3230.c iio: accel: Add driver for the mCube MC3230 3-axis accelerometer 2016-09-18 13:25:38 +01:00
mma7455.h iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver 2015-11-01 18:00:35 +00:00
mma7455_core.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mma7455_i2c.c iio: accel: mma7455_i2c: Add OF device ID table 2017-03-19 10:57:43 +00:00
mma7455_spi.c iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver 2015-11-01 18:00:35 +00:00
mma7660.c iio: accel: mma7660: Add OF device ID table 2017-03-19 10:58:28 +00:00
mma8452.c iio: accel: mma8452: define unsigned return values where appropriate 2016-12-03 08:56:28 +00:00
mma9551.c iio: accel: mma9551: use NULL for GPIO connection ID 2017-06-11 16:05:53 +01:00
mma9551_core.c iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9551_core.h iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9553.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mxc4005.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2016-04-03 10:27:48 +01:00
mxc6255.c iio: accel: mxc6255: Fix chip-id check 2016-09-12 20:19:16 +01:00
sca3000.c staging:iio:accel:sca3000 Move out of staging. 2016-10-23 19:34:07 +01:00
ssp_accel_sensor.c iio: common: ssp_sensors: accel: use devm_iio_device_register() 2017-01-28 12:15:22 +00:00
st_accel.h iio: st_accel: Support sensor i2c probe using acpi 2016-12-03 08:56:26 +00:00
st_accel_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_accel_core.c iio: st_pressure: st_accel: Initialise sensor platform data properly 2017-04-26 06:37:53 +01:00
st_accel_i2c.c iio: accel: st_accel: handle deprecated bindings 2017-01-10 19:54:16 +00:00
st_accel_spi.c iio: accel: st_accel_spi: fix spi_device_id table 2017-06-11 15:07:39 +01:00
stk8ba50.c iio: remove unused gpio consumer.h include 2016-04-03 10:27:47 +01:00
stk8312.c iio: remove unused gpio consumer.h include 2016-04-03 10:27:47 +01:00