mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 6/6] ARM: am33xx: bbu: Make pointers to image const
Date: Tue, 30 Jan 2018 09:46:57 +0100	[thread overview]
Message-ID: <20180130084657.31943-7-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20180130084657.31943-1-s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2018-01-30  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-30  8:46 [PATCH 0/6] bbu: Make image pointer const Sascha Hauer
2018-01-30  8:46 ` [PATCH 1/6] bbu: imx-bbu-internal: Do not modify image Sascha Hauer
2018-01-30  8:46 ` [PATCH 2/6] bbu: imx-bbu-internal: make pointers to image const Sascha Hauer
2018-01-30  8:46 ` [PATCH 3/6] bbu: command: create temporary variable holding the pointer to the image Sascha Hauer
2018-01-30  8:46 ` [PATCH 4/6] bbu: Make pointer to image const Sascha Hauer
2018-01-30  8:46 ` [PATCH 5/6] usb: gadget: fastboot: allow data.image to be const Sascha Hauer
2018-01-30  8:46 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180130084657.31943-7-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox