From 4199474048362ac6586150022c22e14ad36f2bc1 Mon Sep 17 00:00:00 2001 From: Guillaume Knispel Date: Wed, 15 Feb 2012 18:51:08 +0100 Subject: correct bit order for softconf --- xhfc/base.c | 4 ++-- 1 file 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) -- cgit v1.2.3