Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0a84ebd authored by Uwe Kleine-König's avatar Uwe Kleine-König
Browse files

netx/xc: add a few "const"s to fix compiler warnings



the fixed warnings are:

	arch/arm/mach-netx/xc.c: In function ‘xc_request_firmware’:
	arch/arm/mach-netx/xc.c:152: warning: assignment discards qualifiers from pointer target type
	arch/arm/mach-netx/xc.c:162: warning: assignment discards qualifiers from pointer target type

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 2fcfe6b8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -92,10 +92,10 @@ static int xc_check_ptr(struct xc *x, unsigned long adr, unsigned int size)
	return -1;
}

static int xc_patch(struct xc *x, void *patch, int count)
static int xc_patch(struct xc *x, const void *patch, int count)
{
	unsigned int val, adr;
	unsigned int *data = patch;
	const unsigned int *data = patch;

	int i;
	for (i = 0; i < count; i++) {
@@ -117,7 +117,7 @@ int xc_request_firmware(struct xc *x)
	struct fw_header *head;
	unsigned int size;
	int i;
	void *src;
	const void *src;
	unsigned long dst;

	sprintf(name, "xc%d.bin", x->no);