[PATCH 6/6] ARM: am33xx: bbu: Make pointers to image const

Sascha Hauer s.hauer at pengutronix.de
Tue Jan 30 00:46:57 PST 2018


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/mach-omap/am33xx_bbu_spi_mlo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c b/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c
index 69a73ffb06..03477dbaf1 100644
--- a/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c
+++ b/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c
@@ -32,8 +32,8 @@ static int spi_nor_mlo_handler(struct bbu_handler *handler,
 	int ret = 0;
 	uint32_t readbuf;
 	int size = data->len;
-	void *image = data->image;
-	uint32_t *header;
+	const void *image = data->image;
+	const uint32_t *header;
 	int swap = 0;
 	struct stat s;
 
-- 
2.15.1




More information about the barebox mailing list