diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-01-28 10:44:13 +0100 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2020-02-13 18:47:00 +0100 |
commit | 167a603b311a0431f71afc80a5e3807f1dde4564 (patch) | |
tree | a80a9a5c99f1ca329c913c62fa7c945e96fe93f0 /board/st/stm32mp1/stm32mp1.c | |
parent | e968c393dab0db1029802a857d2af6f9f5aaa285 (diff) | |
download | u-boot-167a603b311a0431f71afc80a5e3807f1dde4564.tar.gz u-boot-167a603b311a0431f71afc80a5e3807f1dde4564.tar.xz u-boot-167a603b311a0431f71afc80a5e3807f1dde4564.zip |
board: stm32mp1: change dfu function to static
Change the dfu functions dfu_otp_read and dfu_pmic_read to static,
this patch avoids warning when compiling with W=1.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'board/st/stm32mp1/stm32mp1.c')
-rw-r--r-- | board/st/stm32mp1/stm32mp1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 1b8ad1ef53..c36e7655c0 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -1012,7 +1012,7 @@ void set_dfu_alt_info(char *interface, char *devstr) #include <dfu.h> #include <power/stpmic1.h> -int dfu_otp_read(u64 offset, u8 *buffer, long *size) +static int dfu_otp_read(u64 offset, u8 *buffer, long *size) { struct udevice *dev; int ret; @@ -1032,7 +1032,7 @@ int dfu_otp_read(u64 offset, u8 *buffer, long *size) return 0; } -int dfu_pmic_read(u64 offset, u8 *buffer, long *size) +static int dfu_pmic_read(u64 offset, u8 *buffer, long *size) { int ret; #ifdef CONFIG_PMIC_STPMIC1 |