]> git.baikalelectronics.ru Git - kernel.git/commit
iio: inkern: move to fwnode properties
authorNuno Sá <nuno.sa@analog.com>
Fri, 15 Jul 2022 12:28:53 +0000 (14:28 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 15 Aug 2022 21:29:59 +0000 (22:29 +0100)
commit2a89364cd325923afea44fc1176e868453207cb3
tree8c9eecb1c6d4e4f851d0a2afd63e6a044cf2ef38
parent13e610bedd1da38d786a86c3551be7946a64151c
iio: inkern: move to fwnode properties

This moves the IIO in kernel interface to use fwnode properties and thus
be firmware agnostic.

Note that the interface is still not firmware agnostic. At this point we
have both OF and fwnode interfaces so that we don't break any user. On
top of this we also want to have a per driver conversion and that is the
main reason we have both of_xlate() and fwnode_xlate() support.

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-6-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/inkern.c
include/linux/iio/consumer.h
include/linux/iio/iio.h