[ARM] 3051/1: turn ixp2000_reg_read into an inline function
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>
This commit is contained in:
parent
931db7d688
commit
ecbea7a2da
1 changed files with 5 additions and 1 deletions
|
@ -15,11 +15,15 @@
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#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)
|
static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
|
||||||
{
|
{
|
||||||
*((volatile unsigned long *)reg) = 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
|
* Boards may multiplex different devices on the 2nd channel of
|
||||||
|
|
Loading…
Add table
Reference in a new issue