diff options
author | Guillaume Knispel <gknispel@proformatique.com> | 2012-02-15 18:51:08 +0100 |
---|---|---|
committer | Guillaume Knispel <gknispel@proformatique.com> | 2012-02-15 18:51:08 +0100 |
commit | 4199474048362ac6586150022c22e14ad36f2bc1 (patch) | |
tree | 1f42af5257c3c86cb651fc2cb3f1b87d15762aac | |
parent | 9239c48f767083d0fba314054edabaa5e9dac59a (diff) |
correct bit order for softconf
-rw-r--r-- | xhfc/base.c | 4 |
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) |