diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2021-02-19 08:31:47 +0100 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2021-02-22 11:07:57 +0100 |
commit | 2d339efb1ff941705a770e93494427912689ce18 (patch) | |
tree | 9d8273bd3ff130be32bc976724ddd3119f1347c0 /include | |
parent | 289d0ead2887af6b1c013a96cc2c85100e1e591c (diff) | |
download | u-boot-2d339efb1ff941705a770e93494427912689ce18.zip u-boot-2d339efb1ff941705a770e93494427912689ce18.tar.gz u-boot-2d339efb1ff941705a770e93494427912689ce18.tar.bz2 |
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 <xypron.glpk@gmx.de>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/button.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/button.h b/include/button.h index 688b63b..ee14fad 100644 --- a/include/button.h +++ b/include/button.h @@ -6,6 +6,8 @@ #ifndef __BUTTON_H #define __BUTTON_H +struct udevice; + /** * struct button_uc_plat - Platform data the uclass stores about each device * |