linux-stable/drivers/iio/accel
Hans de Goede 011e841cd1 iio: mma8452: Fix probe failing when an i2c_device_id is used
[ Upstream commit a47ac019e7 ]

The mma8452_driver declares both of_match_table and i2c_driver.id_table
match-tables, but its probe() function only checked for of matches.

Add support for i2c_device_id matches. This fixes the driver not loading
on some x86 tablets (e.g. the Nextbook Ares 8) where the i2c_client is
instantiated by platform code using an i2c_device_id.

Drop of_match_ptr() protection to avoid unused warning.

Fixes: c3cdd6e48e ("iio: mma8452: refactor for seperating chip specific data")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220208124336.511884-1-hdegoede@redhat.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:45 +02:00
..
adis16201.c iio: adis: Cleanout unused headers 2021-06-04 09:28:10 +01:00
adis16209.c iio: adis: Cleanout unused headers 2021-06-04 09:28:10 +01:00
adxl345.h iio: accel: adxl345: convert probe to device-managed functions 2021-07-19 09:51:59 +01:00
adxl345_core.c iio: accel: adxl345: convert probe to device-managed functions 2021-07-19 09:51:59 +01:00
adxl345_i2c.c iio: accel: adxl345: convert probe to device-managed functions 2021-07-19 09:51:59 +01:00
adxl345_spi.c iio: accel: adxl345: convert probe to device-managed functions 2021-07-19 09:51:59 +01:00
adxl372.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
adxl372.h
adxl372_i2c.c
adxl372_spi.c
bma180.c iio: accel: bma180/bmc150: Move BMA254 to bmc150-accel driver 2021-06-13 17:00:18 +01:00
bma220_spi.c iio: accel: bma220: make suspend state setting more robust 2021-07-19 09:51:59 +01:00
bma400.h
bma400_core.c iio: Drop Duplicated "mount-matrix" parameter 2021-06-03 18:24:13 +01:00
bma400_i2c.c
bma400_spi.c
bmc150-accel-core.c iio: Fix error handling for PM 2022-03-02 11:48:04 +01:00
bmc150-accel-i2c.c iio: accel: bmc150: Add support for BMC156 2021-08-08 16:48:30 +01:00
bmc150-accel-spi.c iio: accel: bmc150: Add support for BMC156 2021-08-08 16:48:30 +01:00
bmc150-accel.h iio: accel: bmc150: Add support for BMC156 2021-08-08 16:48:30 +01:00
bmi088-accel-core.c iio: accel: bmi088: Balance runtime pm + use pm_runtime_resume_and_get() 2021-05-17 13:54:27 +01:00
bmi088-accel-spi.c
bmi088-accel.h
cros_ec_accel_legacy.c
da280.c iio: accel: da280: convert probe to device-managed functions 2021-07-17 18:57:55 +01:00
da311.c iio: accel: da311: convert probe to device-managed functions 2021-07-17 18:53:53 +01:00
dmard06.c
dmard09.c
dmard10.c iio: accel: dmard10: convert probe to device-managed functions 2021-07-17 18:52:52 +01:00
fxls8962af-core.c iio: accel: fxls8962af: add padding to regmap for SPI 2022-03-02 11:48:03 +01:00
fxls8962af-i2c.c iio: accel: fxls8962af: add padding to regmap for SPI 2022-03-02 11:48:03 +01:00
fxls8962af-spi.c iio: accel: fxls8962af: add padding to regmap for SPI 2022-03-02 11:48:03 +01:00
fxls8962af.h iio: accel: fxls8962af: add padding to regmap for SPI 2022-03-02 11:48:03 +01:00
hid-sensor-accel-3d.c iio: hid-sensors: bind IIO channels alloc to device object 2021-07-13 18:21:53 +01:00
Kconfig Merge 5.14-rc6 into staging-next 2021-08-16 09:02:59 +02:00
kxcjk-1013.c iio: Fix error handling for PM 2022-03-02 11:48:04 +01:00
kxsd9-i2c.c
kxsd9-spi.c
kxsd9.c iio: kxsd9: Don't return error code in trigger handler 2021-12-14 10:57:21 +01:00
kxsd9.h
Makefile iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers 2021-05-17 13:54:23 +01:00
mc3230.c
mma7455.h
mma7455_core.c
mma7455_i2c.c
mma7455_spi.c
mma7660.c
mma8452.c iio: mma8452: Fix probe failing when an i2c_device_id is used 2022-04-08 14:23:45 +02:00
mma9551.c iio: Fix error handling for PM 2022-03-02 11:48:04 +01:00
mma9551_core.c iio: accel: mma9551/3: Balance untime pm + use pm_runtime_resume_and_get() 2021-05-17 13:54:25 +01:00
mma9551_core.h
mma9553.c iio: Fix error handling for PM 2022-03-02 11:48:04 +01:00
mxc4005.c iio: accel: mxc4005: Fix overread of data and alignment issue. 2021-05-17 13:54:28 +01:00
mxc6255.c
sca3000.c
sca3300.c iio: accel: Add driver for Murata SCA3300 accelerometer 2021-05-17 13:49:09 +01:00
ssp_accel_sensor.c
st_accel.h iio: accel: st_accel: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_accel_buffer.c iio: accel: st_accel: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_accel_core.c iio: accel: st_accel: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_accel_i2c.c iio: st_sensors: disable regulators after device unregistration 2021-11-18 19:16:46 +01:00
st_accel_spi.c iio: st_sensors: disable regulators after device unregistration 2021-11-18 19:16:46 +01:00
stk8ba50.c iio: accel: stk8ba50: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:28 +01:00
stk8312.c iio: accel: stk8312: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:28 +01:00