iio: provide of_iio_channel_get_by_name() and devm_ version it
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 4 Dec 2020 02:55:01 +0000 (05:55 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Jan 2021 18:27:51 +0000 (18:27 +0000)
commit6e39b145cef7577cd6b550e633155e5fc1e5838e
tree58412ad783276b59d089687754dcecd627a6f3e9
parent9695a2a52c8304902e1fc315990f3f7f89a28a39
iio: provide of_iio_channel_get_by_name() and devm_ version it

There might be cases when the IIO channel is attached to the device
subnode instead of being attached to the main device node. Allow drivers
to query IIO channels by using device tree nodes.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20201204025509.1075506-8-dmitry.baryshkov@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/inkern.c
include/linux/iio/consumer.h