summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/wilco_ec/properties.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-05 12:48:28 +0300
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2020-02-11 12:32:50 +0300
commit8673e944b50ec6e5afd4f599cf12b2798b629f3d (patch)
treebb8de5a2db0a59a4ea1813e38044ba7eda208562 /drivers/platform/chrome/wilco_ec/properties.c
parent2b63eb961ade6c47132d649ec89a48e18754e169 (diff)
downloadlinux-8673e944b50ec6e5afd4f599cf12b2798b629f3d.tar.xz
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/properties.c')
-rw-r--r--drivers/platform/chrome/wilco_ec/properties.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/chrome/wilco_ec/properties.c b/drivers/platform/chrome/wilco_ec/properties.c
index 62f27610dd33..c2bf4c95c5d2 100644
--- a/drivers/platform/chrome/wilco_ec/properties.c
+++ b/drivers/platform/chrome/wilco_ec/properties.c
@@ -3,8 +3,11 @@
* Copyright 2019 Google LLC
*/
+#include <linux/errno.h>
+#include <linux/export.h>
#include <linux/platform_data/wilco-ec.h>
#include <linux/string.h>
+#include <linux/types.h>
#include <asm/unaligned.h>
/* Operation code; what the EC should do with the property */