Skip to content

Commit a7bad16

Browse files
author
Tzung-Bi Shih
committed
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>
1 parent 2f3dd39 commit a7bad16

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/platform/chrome/cros_ec.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include <linux/interrupt.h>
1212

13+
struct cros_ec_device;
14+
1315
int cros_ec_register(struct cros_ec_device *ec_dev);
1416
void cros_ec_unregister(struct cros_ec_device *ec_dev);
1517

0 commit comments

Comments
 (0)