Commit 167a603b authored by Patrick Delaunay's avatar Patrick Delaunay
Browse files

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's avatarPatrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard's avatarPatrice Chotard <patrice.chotard@st.com>
parent e968c393
...@@ -1012,7 +1012,7 @@ void set_dfu_alt_info(char *interface, char *devstr) ...@@ -1012,7 +1012,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
#include <dfu.h> #include <dfu.h>
#include <power/stpmic1.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; struct udevice *dev;
int ret; int ret;
...@@ -1032,7 +1032,7 @@ int dfu_otp_read(u64 offset, u8 *buffer, long *size) ...@@ -1032,7 +1032,7 @@ int dfu_otp_read(u64 offset, u8 *buffer, long *size)
return 0; 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; int ret;
#ifdef CONFIG_PMIC_STPMIC1 #ifdef CONFIG_PMIC_STPMIC1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment