Commit 8d073287 authored by Jesper Nilsson's avatar Jesper Nilsson
Browse files

CRIS v32: Rename variable used in macro for arch-v32/hwregs/dma.h

The old name "r" would quite often produce warnings when other
variables with the same name was shadowed. Rename it __x to
make it more unlikely to happen.
parent 3fb18a33
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
/* $Id: dma.h,v 1.7 2005/04/24 18:30:58 starvik Exp $
 *
/*
 * DMA C definitions and help macros
 *
 */
@@ -98,10 +97,10 @@ typedef struct dma_descr_data {

// give stream command
#define DMA_WR_CMD( inst, cmd_par ) \
   do { reg_dma_rw_stream_cmd r = {0}; \
        do { r = REG_RD( dma, inst, rw_stream_cmd ); } while( r.busy ); \
        r.cmd = (cmd_par); \
        REG_WR( dma, inst, rw_stream_cmd, r ); \
   do { reg_dma_rw_stream_cmd __x = {0}; \
	do { __x = REG_RD(dma, inst, rw_stream_cmd); } while (__x.busy); \
	__x.cmd = (cmd_par); \
	REG_WR(dma, inst, rw_stream_cmd, __x); \
   } while (0)

// load: g,c,d:burst