iio: inkern: split of_iio_channel_get_by_name()
authorNuno Sá <nuno.sa@analog.com>
Fri, 15 Jul 2022 12:28:52 +0000 (14:28 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 15 Aug 2022 21:29:59 +0000 (22:29 +0100)
commitd6bb09eab2b3c4c55e5f6006cf8e759439e3e741
treed0a60f1f8174d741f24d9fd37d6057979fdacd47
parented5e5ed4e377599825d32162a6ff3e9d2d89d200
iio: inkern: split of_iio_channel_get_by_name()

This change splits of_iio_channel_get_by_name() so that it decouples
looking for channels in the current node from looking in it's parents
nodes. This will be helpful when moving to fwnode properties where we
need to release the handles when looking for channels in parent's nodes.

No functional change intended...

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220715122903.332535-5-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/inkern.c