ASoC: samsung: Use iio_get_channel_type() accessor.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Aug 2022 16:09:14 +0000 (17:09 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Aug 2022 13:07:22 +0000 (14:07 +0100)
commit94f072748337424c9cf92cd018532a34db3a5516
tree90677a3c6234945d621cfa7a1d720e3cd3a2f334
parent4d45d944e885e1bf4341a8cbb9b69584477880e3
ASoC: samsung: Use iio_get_channel_type() accessor.

struct iio_chan_spec is meant to be opaque to IIO consumer drivers
which should only use the interfaces in linux/iio/consumer.h.
Use the provided accessor function to find get the type of the
channel instead of directly reading it form the structure.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Link: https://lore.kernel.org/r/20220821160914.2207116-1-jic23@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/aries_wm8994.c