Skip to content

Commit

Permalink
netx/xc: add a few "const"s to fix compiler warnings
Browse files Browse the repository at this point in the history
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Uwe Kleine-König committed Dec 9, 2008
1 parent 2fcfe6b commit e0a84eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-netx/xc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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);
Expand Down

0 comments on commit e0a84eb

Please sign in to comment.