Skip to content

Commit

Permalink
[ARM] 3051/1: turn ixp2000_reg_read into an inline function
Browse files Browse the repository at this point in the history
Patch from Lennert Buytenhek

Turn ixp2000_reg_read into an inline function.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Oct 29, 2005
1 parent 931db7d commit ecbea7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/asm-arm/arch-ixp2000/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@

#ifndef __ASSEMBLY__

static inline unsigned long ixp2000_reg_read(volatile void *reg)
{
return *((volatile unsigned long *)reg);
}

static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
{
*((volatile unsigned long *)reg) = val;
}
#define ixp2000_reg_read(reg) (*((volatile unsigned long *)reg))

/*
* Boards may multiplex different devices on the 2nd channel of
Expand Down

0 comments on commit ecbea7a

Please sign in to comment.