diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2012-07-18 18:22:45 +0800 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 13:39:53 +0800 |
commit | 433b58877d454f420e9d6ac1f889de80ee454df0 (patch) | |
tree | c705c763a1eb7f2f56674bc888d337d0c3ca7b8c | |
parent | 68bcdd48a24d67f1b8345e660c603d8b24f72411 (diff) | |
download | op-kernel-dev-433b58877d454f420e9d6ac1f889de80ee454df0.zip op-kernel-dev-433b58877d454f420e9d6ac1f889de80ee454df0.tar.gz |
blackfin: twi: read twi mmr via bfin_read macro
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
-rw-r--r-- | arch/blackfin/include/asm/bfin_twi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/include/asm/bfin_twi.h b/arch/blackfin/include/asm/bfin_twi.h index c0fe662..f4a0727 100644 --- a/arch/blackfin/include/asm/bfin_twi.h +++ b/arch/blackfin/include/asm/bfin_twi.h @@ -94,7 +94,7 @@ static inline u16 read_RCV_DATA8(struct bfin_twi_iface *iface) unsigned long flags; flags = hard_local_irq_save(); - ret = iface->regs_base->rcv_data8; + ret = bfin_read16(&iface->regs_base->rcv_data8); hard_local_irq_restore(flags); return ret; @@ -106,7 +106,7 @@ static inline u16 read_RCV_DATA16(struct bfin_twi_iface *iface) unsigned long flags; flags = hard_local_irq_save(); - ret = iface->regs_base->rcv_data16; + ret = bfin_read16(&iface->regs_base->rcv_data16); hard_local_irq_restore(flags); return ret; |