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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tzung-Bi Shih <[email protected]>
1 parent 2f3dd39 commit a7bad16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)