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 /include/linux/platform_data/wilco-ec.h | |
parent | 2b63eb961ade6c47132d649ec89a48e18754e169 (diff) | |
download | lwn-8673e944b50ec6e5afd4f599cf12b2798b629f3d.tar.gz lwn-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 'include/linux/platform_data/wilco-ec.h')
-rw-r--r-- | include/linux/platform_data/wilco-ec.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/platform_data/wilco-ec.h b/include/linux/platform_data/wilco-ec.h index afede15a95bf..25f46a939637 100644 --- a/include/linux/platform_data/wilco-ec.h +++ b/include/linux/platform_data/wilco-ec.h @@ -8,8 +8,8 @@ #ifndef WILCO_EC_H #define WILCO_EC_H -#include <linux/device.h> -#include <linux/kernel.h> +#include <linux/mutex.h> +#include <linux/types.h> /* Message flags for using the mailbox() interface */ #define WILCO_EC_FLAG_NO_RESPONSE BIT(0) /* EC does not respond */ @@ -17,6 +17,10 @@ /* Normal commands have a maximum 32 bytes of data */ #define EC_MAILBOX_DATA_SIZE 32 +struct device; +struct resource; +struct platform_device; + /** * struct wilco_ec_device - Wilco Embedded Controller handle. * @dev: Device handle. |