aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2022-02-08 12:43:35 +0000
committerJonathan Cameron <[email protected]>2022-02-18 11:35:06 +0000
commita47ac019e7e8129b93a0b991e04b2a59872e053d (patch)
tree4966b1226ab6be7d831b82241ccadd68029d752d /drivers/iio/trigger/stm32-timer-trigger.c
parentiio: chemical: atlas-ezo-sensor: Make use of device properties (diff)
downloadkernel-a47ac019e7e8129b93a0b991e04b2a59872e053d.tar.gz
kernel-a47ac019e7e8129b93a0b991e04b2a59872e053d.zip
iio: mma8452: Fix probe failing when an i2c_device_id is used
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: c3cdd6e48e35 ("iio: mma8452: refactor for seperating chip specific data") Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions