Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: core: drop of.h from iio.h

There is no reason to include OF as we only need to forward declare
'of_phandle_args'. Previously, some drivers were actually relying on
this for some headers (those were already fixed).

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

authored by

Nuno Sá and committed by
Jonathan Cameron
10f09307 bf49a46b

+2 -1
+2 -1
include/linux/iio/iio.h
··· 11 11 #include <linux/cdev.h> 12 12 #include <linux/slab.h> 13 13 #include <linux/iio/types.h> 14 - #include <linux/of.h> 15 14 /* IIO TODO LIST */ 16 15 /* 17 16 * Provide means of adjusting timer accuracy. 18 17 * Currently assumes nano seconds. 19 18 */ 19 + 20 + struct of_phandle_args; 20 21 21 22 enum iio_shared_by { 22 23 IIO_SEPARATE,