* [PATCH v2 28/30] serial: use parity32 in max3100 [not found] <57031D9D.801@gmail.com> @ 2016-04-06 10:18 ` zengzhaoxiu 2016-04-06 10:25 ` Greg KH 0 siblings, 1 reply; 2+ messages in thread From: zengzhaoxiu @ 2016-04-06 10:18 UTC (permalink / raw) To: lars, gregkh, jslaby; +Cc: linux-serial, linux-kernel, Zhaoxiu Zeng From: Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> Signed-off-by: Zhaoxiu Zeng <zhaoxiu.zeng@gmail.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 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 28/30] serial: use parity32 in max3100 2016-04-06 10:18 ` [PATCH v2 28/30] serial: use parity32 in max3100 zengzhaoxiu @ 2016-04-06 10:25 ` Greg KH 0 siblings, 0 replies; 2+ messages in thread From: Greg KH @ 2016-04-06 10:25 UTC (permalink / raw) To: zengzhaoxiu; +Cc: lars, jslaby, linux-serial, linux-kernel, Zhaoxiu Zeng On Wed, Apr 06, 2016 at 06:18:42PM +0800, zengzhaoxiu@163.com wrote: > From: Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> > > Signed-off-by: Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> > --- > drivers/tty/serial/max3100.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I can't take patches without any changelog text :( ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-06 10:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <57031D9D.801@gmail.com>
2016-04-06 10:18 ` [PATCH v2 28/30] serial: use parity32 in max3100 zengzhaoxiu
2016-04-06 10:25 ` Greg KH
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).