Skip to content

Commit

Permalink
ns9xxx: fix assembler version of __REG2 to be consistent with the C v…
Browse files Browse the repository at this point in the history
…ersion

It's not very critical because __REG2 isn't used in assembler code
currently.

Additionally some white space noise is fixed.

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
  • Loading branch information
Uwe Kleine-König authored and Uwe Kleine-König committed May 30, 2008
1 parent 916941b commit a4831fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-arm/arch-ns9xxx/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
__REGGET(var, reg ## _ ## field) / __REGSHIFT(reg ## _ ## field)

# define REGGETIM_IDX(var, reg, field, idx) \
__REGGET(var, reg ## _ ## field((idx))) / \
__REGGET(var, reg ## _ ## field((idx))) / \
__REGSHIFT(reg ## _ ## field((idx)))

#else

# define __REG(x) io_p2v(x)
# define __REG2(x, y) io_p2v((x) + (y))
# define __REG2(x, y) io_p2v((x) + 4 * (y))

#endif

Expand Down

0 comments on commit a4831fb

Please sign in to comment.