iio: pressure: cros_ec_baro: explicitly add proper header files
authorNuno Sá <nuno.sa@analog.com>
Fri, 10 Jun 2022 08:45:28 +0000 (10:45 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Jun 2022 10:53:20 +0000 (11:53 +0100)
Do not trust the fact that iio.h includes of.h which in turn includes
all the headers we are relying on.

The ultimate goal is to actually drop of.h from iio.h.

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-18-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/cros_ec_baro.c

index 1d9d34ae3c0a850cec97247a95d3fbaf8fa6d932..25217279f35071eeb3bf198acf23c67a372f1f6d 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/iio/triggered_buffer.h>
 #include <linux/iio/trigger_consumer.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/platform_data/cros_ec_commands.h>