diff options
author | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-08-25 11:11:45 +0200 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-08-25 11:11:45 +0200 |
commit | 70c459545852ad454e236a2b21586c53f959e18c (patch) | |
tree | 9e3ebd3bd9948f0e54c3dce79c808a5ea203d5ef /xhfc/xhfc_leb.h | |
parent | 0fae154047797caee7ecd7e9fdbfdb752c2fe933 (diff) |
Mainly cosmetic.
Diffstat (limited to 'xhfc/xhfc_leb.h')
-rw-r--r-- | xhfc/xhfc_leb.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xhfc/xhfc_leb.h b/xhfc/xhfc_leb.h index 472bc3d..0f300c6 100644 --- a/xhfc/xhfc_leb.h +++ b/xhfc/xhfc_leb.h @@ -35,23 +35,20 @@ #define IRQ_TLP_GPIO_30 31 -extern uint trigger; -//extern uint debug; - void leb_init(struct xhfc_pi *leb); static inline u8 read_xhfc(struct xhfc * xhfc, u8 reg_addr) { u8 __iomem *cs_n0 = xhfc->pi->cs_n0; - return readb(&cs_n0[(trigger << 8) + reg_addr]); + return readb(&cs_n0[reg_addr]); } static inline void write_xhfc(struct xhfc * xhfc, u8 reg_addr, u8 value) { u8 __iomem *cs_n0 = xhfc->pi->cs_n0; - writeb(value, &cs_n0[(trigger << 8) + reg_addr]); + writeb(value, &cs_n0[reg_addr]); } #if 0 |