diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-02-05 11:48:28 +0200 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2020-02-11 10:32:50 +0100 |
commit | 8673e944b50ec6e5afd4f599cf12b2798b629f3d (patch) | |
tree | bb8de5a2db0a59a4ea1813e38044ba7eda208562 /drivers/platform/chrome/wilco_ec/sysfs.c | |
parent | 2b63eb961ade6c47132d649ec89a48e18754e169 (diff) | |
download | linux-stable-8673e944b50ec6e5afd4f599cf12b2798b629f3d.tar.gz linux-stable-8673e944b50ec6e5afd4f599cf12b2798b629f3d.tar.bz2 linux-stable-8673e944b50ec6e5afd4f599cf12b2798b629f3d.zip |
platform/chrome: wilco_ec: Platform data shouldn't include kernel.h
Replace with appropriate types.h.
Also there is no need to include device.h, but mutex.h.
For the pointers to unknown structures use forward declarations.
In the *.c files we need to include all headers that provide APIs
being used in the module.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'drivers/platform/chrome/wilco_ec/sysfs.c')
-rw-r--r-- | drivers/platform/chrome/wilco_ec/sysfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/chrome/wilco_ec/sysfs.c b/drivers/platform/chrome/wilco_ec/sysfs.c index f0d174b6bb21..3c587b4054a5 100644 --- a/drivers/platform/chrome/wilco_ec/sysfs.c +++ b/drivers/platform/chrome/wilco_ec/sysfs.c @@ -8,8 +8,12 @@ * See Documentation/ABI/testing/sysfs-platform-wilco-ec for more information. */ +#include <linux/device.h> +#include <linux/kernel.h> #include <linux/platform_data/wilco-ec.h> +#include <linux/string.h> #include <linux/sysfs.h> +#include <linux/types.h> #define CMD_KB_CMOS 0x7C #define SUB_CMD_KB_CMOS_AUTO_ON 0x03 |