IIO: ADC: stm32-dfsdm: code optimization
authorArnaud Pouliquen <arnaud.pouliquen@st.com>
Mon, 15 Jan 2018 08:57:39 +0000 (09:57 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jan 2018 18:50:21 +0000 (18:50 +0000)
commitabaca806fd13afd069e04e883de8ec75924b0598
treea5de7c5afe851a6086af5b67b0022006ed208b99
parentd5ff18bcd4b5e66396eab7e8271172157ee1253e
IIO: ADC: stm32-dfsdm: code optimization

Use of_device_get_match_data to optimize the source code.
No check is needed on dev_data as match table is defined in driver.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/iio/adc/stm32-dfsdm-adc.c
drivers/iio/adc/stm32-dfsdm-core.c