Commit 07d6a5a4 authored by andy.shevchenko@gmail.com's avatar andy.shevchenko@gmail.com Committed by Jonathan Cameron

iio: st_sensors: lsm9ds0: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use)
principle.
Signed-off-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240211201526.1518165-3-andy.shevchenko@gmail.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent ac73e222
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
#ifndef ST_LSM9DS0_H #ifndef ST_LSM9DS0_H
#define ST_LSM9DS0_H #define ST_LSM9DS0_H
struct iio_dev; struct device;
struct regmap;
struct regulator; struct regulator;
struct iio_dev;
struct st_lsm9ds0 { struct st_lsm9ds0 {
struct device *dev; struct device *dev;
const char *name; const char *name;
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
* Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
*/ */
#include <linux/device.h> #include <linux/array_size.h>
#include <linux/dev_printk.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#include <linux/iio/common/st_sensors.h> #include <linux/iio/common/st_sensors.h>
......
...@@ -7,8 +7,10 @@ ...@@ -7,8 +7,10 @@
* Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
*/ */
#include <linux/device.h>
#include <linux/err.h>
#include <linux/gfp_types.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mod_devicetable.h> #include <linux/mod_devicetable.h>
#include <linux/regmap.h> #include <linux/regmap.h>
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
* Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
*/ */
#include <linux/kernel.h> #include <linux/device.h>
#include <linux/err.h>
#include <linux/gfp_types.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mod_devicetable.h> #include <linux/mod_devicetable.h>
#include <linux/regmap.h> #include <linux/regmap.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment