summaryrefslogtreecommitdiff
path: root/include/linux/iio/consumer.h
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2022-07-15 15:29:02 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-08-16 00:30:00 +0300
commitb22bc4d6072e74b768c4c19e2ff3585ba5927904 (patch)
tree0f3ce68b8d542034322d1ea9ec56def6978788e4 /include/linux/iio/consumer.h
parentd7705f35448ada5a04f15326404e40d4254c538d (diff)
downloadlinux-b22bc4d6072e74b768c4c19e2ff3585ba5927904.tar.xz
iio: inkern: remove OF dependencies
Since all users of the OF dependendent API are now converted to use the firmware agnostic alternative, we can drop OF dependencies from the IIO in kernel interface. 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-15-nuno.sa@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/iio/consumer.h')
-rw-r--r--include/linux/iio/consumer.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/iio/consumer.h b/include/linux/iio/consumer.h
index 2adb1306da3e..6802596b017c 100644
--- a/include/linux/iio/consumer.h
+++ b/include/linux/iio/consumer.h
@@ -7,14 +7,12 @@
#ifndef _IIO_INKERN_CONSUMER_H_
#define _IIO_INKERN_CONSUMER_H_
-#include <linux/of.h>
#include <linux/types.h>
#include <linux/iio/types.h>
struct iio_dev;
struct iio_chan_spec;
struct device;
-struct device_node;
struct fwnode_handle;
/**
@@ -129,14 +127,6 @@ struct iio_channel *devm_fwnode_iio_channel_get_by_name(struct device *dev,
struct fwnode_handle *fwnode,
const char *consumer_channel);
-static inline struct iio_channel
-*devm_of_iio_channel_get_by_name(struct device *dev, struct device_node *np,
- const char *consumer_channel)
-{
- return devm_fwnode_iio_channel_get_by_name(dev, of_fwnode_handle(np),
- consumer_channel);
-}
-
struct iio_cb_buffer;
/**
* iio_channel_get_all_cb() - register callback for triggered capture