summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-12-05 18:01:38 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-12-12 18:13:11 +0100
commitf346c96505412d83f7c8aa09629e48c2d3315fd4 (patch)
treeae8a1fed7036839616d073cb3febb26ab605e48b
parentiio:adc:ti-adc12138: Switch to generic firmware properties and drop of_match_ptr (diff)
downloadlinux-f346c96505412d83f7c8aa09629e48c2d3315fd4.tar.xz
linux-f346c96505412d83f7c8aa09629e48c2d3315fd4.zip
iio:adc:envelope-detector: Switch from of headers to mod_devicetable.h
There is nothing directly using of specific interfaces in this driver, so lets not include the headers. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Peter Rosin <peda@axentia.se> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
-rw-r--r--drivers/iio/adc/envelope-detector.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/adc/envelope-detector.c b/drivers/iio/adc/envelope-detector.c
index d73eac36153f..e911c25d106d 100644
--- a/drivers/iio/adc/envelope-detector.c
+++ b/drivers/iio/adc/envelope-detector.c
@@ -31,14 +31,13 @@
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/mod_devicetable.h>
#include <linux/mutex.h>
#include <linux/iio/consumer.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
-#include <linux/of.h>
-#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/workqueue.h>