iio: adc: ad7606: exit for invalid fdt dt_schema properties
authorAngelo Dureghello <adureghello@baylibre.com>
Fri, 6 Jun 2025 14:19:20 +0000 (16:19 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Jun 2025 06:45:37 +0000 (07:45 +0100)
commit9dc4ef3a5b9f6b28f27aa29977049c84cdec4755
treef8de22b0f94850fc76ea379274c6dabad2b7e4d5
parente986466a92da6a0e8acf118facfb05a6d6d4dbcf
iio: adc: ad7606: exit for invalid fdt dt_schema properties

Fix ad7606_get_chan_config() fdt parsing function to exit for error in
case of invalid dt_schema values.

Idea is to not proceed when there are values that are not allowed under
the dt_schema.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250606-wip-bl-ad7606-calibration-v9-5-6e014a1f92a2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c