summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xhfc/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xhfc/base.c b/xhfc/base.c
index e3d10b9..e37aef0 100644
--- a/xhfc/base.c
+++ b/xhfc/base.c
@@ -767,13 +767,13 @@ static void xhfc_hard_reset(void)
static inline int lebcs1_bit_nt(int port)
{
- return (3 - port) * 2 + 1;
+ return (port * 2);
}
/* on the leb, cs1 */
static inline int lebcs1_bit_term(int port)
{
- return (3 - port) * 2;
+ return (port * 2) + 1;
}
static inline u8 byte_replace_bit(u8 byte, int nr, bool value)