diff options
Diffstat (limited to 'arch')
-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 2f3339a47626..e3b40e2856f2 100644 --- a/arch/blackfin/include/asm/bfin_twi.h +++ b/arch/blackfin/include/asm/bfin_twi.h | |||
@@ -66,9 +66,9 @@ struct bfin_twi_iface { | |||
66 | 66 | ||
67 | #define DEFINE_TWI_REG(reg_name, reg) \ | 67 | #define DEFINE_TWI_REG(reg_name, reg) \ |
68 | static inline u16 read_##reg_name(struct bfin_twi_iface *iface) \ | 68 | static inline u16 read_##reg_name(struct bfin_twi_iface *iface) \ |
69 | { return iface->regs_base->reg; } \ | 69 | { return bfin_read16(&iface->regs_base->reg); } \ |
70 | static inline void write_##reg_name(struct bfin_twi_iface *iface, u16 v) \ | 70 | static inline void write_##reg_name(struct bfin_twi_iface *iface, u16 v) \ |
71 | { iface->regs_base->reg = v; } | 71 | { bfin_write16(&iface->regs_base->reg, v); } |
72 | 72 | ||
73 | DEFINE_TWI_REG(CLKDIV, clkdiv) | 73 | DEFINE_TWI_REG(CLKDIV, clkdiv) |
74 | DEFINE_TWI_REG(CONTROL, control) | 74 | DEFINE_TWI_REG(CONTROL, control) |