All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] platform/chrome: wilco_ec: Platform data shan't include kernel.h
@ 2020-02-04 16:27 Andy Shevchenko
  2020-02-05  2:43   ` kbuild test robot
  2020-02-05  4:02   ` kbuild test robot
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2020-02-04 16:27 UTC (permalink / raw)
  To: Enric Balletbo i Serra, Nick Crews, linux-kernel, Daniel Campello
  Cc: Andy Shevchenko

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.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/platform_data/wilco-ec.h | 8 ++++++--
 1 file 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.
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-05  4:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 16:27 [PATCH v1] platform/chrome: wilco_ec: Platform data shan't include kernel.h Andy Shevchenko
2020-02-05  2:43 ` kbuild test robot
2020-02-05  2:43   ` kbuild test robot
2020-02-05  4:02 ` kbuild test robot
2020-02-05  4:02   ` kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.