From fc1f1578a051132ed6856fc663f100e1395440d9 Mon Sep 17 00:00:00 2001 From: Noe Rubinstein Date: Tue, 21 Aug 2012 18:44:35 +0200 Subject: reverse NTTE --- xhfc/base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xhfc/base.c') diff --git a/xhfc/base.c b/xhfc/base.c index 0fcbb40..b8c2ade 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 (port * 2); + return (port * 2) + 1; } /* on the leb, cs1 */ static inline int lebcs1_bit_term(int port) { - return (port * 2) + 1; + return (port * 2); } static inline u8 byte_replace_bit(u8 byte, int nr, bool value) @@ -793,7 +793,7 @@ static void configure_ntte(struct xhfc_span *xhfc_span, int nt) soft_conf = byte_replace_bit(soft_conf, lebcs1_bit_nt(xhfc_span->port), - !!nt); + !nt); xhfc->pi->soft_conf_byte = soft_conf; write_xhfc_soft_conf(xhfc, soft_conf); -- cgit v1.2.3