summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2023-10-03 11:04:53 +0300
committerTzung-Bi Shih <tzungbi@kernel.org>2023-10-05 13:09:38 +0300
commita7bad167bdc3cf4c47c6a9ec4fc9b4ae18b4614d (patch)
treed18fa19f26e696345a277219ba73f0e2b1d095e6
parent2f3dd39e2b492bec366487a2c9bcbdbd7792f77c (diff)
downloadlinux-a7bad167bdc3cf4c47c6a9ec4fc9b4ae18b4614d.tar.xz
platform/chrome: cros_ec: fix compilation warning
When including cros_ec.h solely, the compiler emits the following warning: > 'struct cros_ec_device' declared inside parameter list will not be visible outside of this definition or declaration Fix it by forward declaration. Reviewed-by: Guenter Roeck <groeck@chromium.org> Link: https://lore.kernel.org/r/20231003080453.4011301-1-tzungbi@kernel.org Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
-rw-r--r--drivers/platform/chrome/cros_ec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_ec.h b/drivers/platform/chrome/cros_ec.h
index bbca0096868a..2b2574236030 100644
--- a/drivers/platform/chrome/cros_ec.h
+++ b/drivers/platform/chrome/cros_ec.h
@@ -10,6 +10,8 @@
#include <linux/interrupt.h>
+struct cros_ec_device;
+
int cros_ec_register(struct cros_ec_device *ec_dev);
void cros_ec_unregister(struct cros_ec_device *ec_dev);