OrangePi_CM5/drivers/iio/accel
Hans de Goede f5b01abf5f iio: mma8452: Fix probe failing when an i2c_device_id is used
[ Upstream commit a47ac019e7e8129b93a0b991e04b2a59872e053d ]

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:40:24 +02:00
..
Kconfig iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-19 10:13:13 +02:00
Makefile
…
adis16201.c iio:accel:adis16201: Fix wrong axis assignment that prevents loading 2021-05-14 09:49:58 +02:00
adis16209.c iio: adis16209: Use Managed device functions 2020-09-16 19:06:08 +01:00
adxl345.h
…
adxl345_core.c
…
adxl345_i2c.c
…
adxl345_spi.c
…
adxl372.c
…
adxl372.h
…
adxl372_i2c.c
…
adxl372_spi.c
…
bma180.c iio: accel: bma180: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:34 +02:00
bma220_spi.c iio: accel: bma220: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:34 +02:00
bma400.h
…
bma400_core.c
…
bma400_i2c.c
…
bma400_spi.c
…
bmc150-accel-core.c iio: Fix error handling for PM 2022-03-02 11:42:53 +01:00
bmc150-accel-i2c.c
…
bmc150-accel-spi.c
…
bmc150-accel.h
…
cros_ec_accel_legacy.c iio: cros_ec: unify hw fifo attributes into the core file 2020-09-29 17:27:07 +01:00
da280.c
…
da311.c
…
dmard06.c
…
dmard09.c
…
dmard10.c
…
hid-sensor-accel-3d.c iio: accel: hid: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:34 +02:00
kxcjk-1013.c iio: Fix error handling for PM 2022-03-02 11:42:53 +01:00
kxsd9-i2c.c
…
kxsd9-spi.c
…
kxsd9.c iio: kxsd9: Don't return error code in trigger handler 2021-12-14 11:32:44 +01:00
kxsd9.h
…
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:40:24 +02:00
mma9551.c iio: Fix error handling for PM 2022-03-02 11:42:53 +01:00
mma9551_core.c
…
mma9551_core.h
…
mma9553.c iio: Fix error handling for PM 2022-03-02 11:42:53 +01:00
mxc4005.c iio: accel: mxc4005: Fix overread of data and alignment issue. 2021-07-14 16:56:35 +02:00
mxc6255.c
…
sca3000.c
…
ssp_accel_sensor.c
…
st_accel.h
…
st_accel_buffer.c
…
st_accel_core.c iio: st_sensors: Call st_sensors_power_enable() from bus drivers 2021-11-18 14:04:13 +01:00
st_accel_i2c.c iio: st_sensors: disable regulators after device unregistration 2021-11-18 14:04:13 +01:00
st_accel_spi.c iio: st_sensors: disable regulators after device unregistration 2021-11-18 14:04:13 +01:00
stk8ba50.c iio: accel: stk8ba50: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:35 +02:00
stk8312.c iio: accel: stk8312: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:56:35 +02:00