iio: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Fri, 6 Oct 2023 22:44:39 +0000 (17:44 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Oct 2023 16:18:36 +0000 (17:18 +0100)
commit89a1d2f064d2ae77a9cd6a8c7ac42b3c1647efa5
treeef58634d77892dcf2a641cf5f70fc95d26ff0f9a
parent349c1b49ffafd9f0e49153599efd5cd251ba60b1
iio: Use device_get_match_data()

Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231006224440.442864-1-robh@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-adc-core.c
drivers/iio/adc/twl6030-gpadc.c
drivers/iio/dac/stm32-dac-core.c