[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1459937922-8531-1-git-send-email-zengzhaoxiu@163.com>
Date: Wed, 6 Apr 2016 18:18:42 +0800
From: zengzhaoxiu@....com
To: lars@...afoo.de, gregkh@...uxfoundation.org, jslaby@...e.com
Cc: linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
Zhaoxiu Zeng <zhaoxiu.zeng@...il.com>
Subject: [PATCH v2 28/30] serial: use parity32 in max3100
From: Zhaoxiu Zeng <zhaoxiu.zeng@...il.com>
Signed-off-by: Zhaoxiu Zeng <zhaoxiu.zeng@...il.com>
---
drivers/tty/serial/max3100.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c
index 5c4c280..a0cc84a 100644
--- a/drivers/tty/serial/max3100.c
+++ b/drivers/tty/serial/max3100.c
@@ -155,7 +155,7 @@ static int max3100_do_parity(struct max3100_port *s, u16 c)
else
c &= 0xff;
- parity = parity ^ (hweight8(c) & 1);
+ parity ^= parity8(c);
return parity;
}
--
2.5.0
Powered by blists - more mailing lists