summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorNeil Armstrong <[email protected]>2021-02-19 08:31:47 +0100
committerNeil Armstrong <[email protected]>2021-02-22 11:07:57 +0100
commit2d339efb1ff941705a770e93494427912689ce18 (patch)
tree9d8273bd3ff130be32bc976724ddd3119f1347c0 /scripts/checkpatch.pl
parent289d0ead2887af6b1c013a96cc2c85100e1e591c (diff)
button: add udevice forward declaration
After 401d1c4f5d2d ("common: Drop asm/global_data.h from common header") build fails with : drivers/button/button-uclass.c:13:5: error: conflicting types for 'button_get_by_label' int button_get_by_label(const char *label, struct udevice **devp) ^~~~~~~~~~~~~~~~~~~ Adding struct udevice forward declaration in button.h solves the build error. Fixes: 401d1c4f5d2d ("common: Drop asm/global_data.h from common header") Suggested-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions