From patchwork Thu Apr 14 03:11:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zengzhaoxiu@163.com X-Patchwork-Id: 8831001 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3440BC0554 for ; Thu, 14 Apr 2016 03:12:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 718B3202D1 for ; Thu, 14 Apr 2016 03:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9595520295 for ; Thu, 14 Apr 2016 03:12:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752459AbcDNDMJ (ORCPT ); Wed, 13 Apr 2016 23:12:09 -0400 Received: from m50-133.163.com ([123.125.50.133]:56479 "EHLO m50-133.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752464AbcDNDMI (ORCPT ); Wed, 13 Apr 2016 23:12:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=hdHH3/HVTydchxQDa5 vA3SXjkbAGdJZlkSQBJ5tYlfA=; b=f160qHwnEHp83LlOyfMmXbiOcW5FmjctuT Y/9cwswAqBJl+plrkJyBMBJjPxFRrRXjrsoTc/9DZWyyFr0WjahvHrAoCO5yDUsH TCPbOh07pSdhRJgk8U9T8LZkXxRMt3M3/1mtlftStDgkqpTPr7IPFWilRU3sRwG7 E2dfenLQU= Received: from zhaoxiuzeng-VirtualBox.spreadtrum.com (unknown [112.95.225.98]) by smtp3 (Coremail) with SMTP id DdGowACn7pKCCg9XOvKhAw--.179S2; Thu, 14 Apr 2016 11:12:06 +0800 (CST) From: zengzhaoxiu@163.com To: linux-kernel@vger.kernel.org Cc: Zhaoxiu Zeng , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH V3 25/29] input: use parity8 in sa1111ps2 Date: Thu, 14 Apr 2016 11:11:58 +0800 Message-Id: <1460603521-5684-1-git-send-email-zengzhaoxiu@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460601525-3822-1-git-send-email-zengzhaoxiu@163.com> References: <1460601525-3822-1-git-send-email-zengzhaoxiu@163.com> X-CM-TRANSID: DdGowACn7pKCCg9XOvKhAw--.179S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtr4DXr15Gw4fXw1fZFykuFg_yoWxZrg_WF n0yFs2gF1vkFWayw1DJrsxXF98t3ZavFWFgw15ta43Gr1UC3yDJa48CFyrJrn5Xr4Uur17 XryDGr9a9w4xWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU50sj5UUUUU== X-Originating-IP: [112.95.225.98] X-CM-SenderInfo: p2hqw6xkdr5xrx6rljoofrz/xtbBDRpLgFaDmYPfLAABsh Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Zhaoxiu Zeng Signed-off-by: Zhaoxiu Zeng --- drivers/input/serio/sa1111ps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio/sa1111ps2.c b/drivers/input/serio/sa1111ps2.c index b3e6889..324b193 100644 --- a/drivers/input/serio/sa1111ps2.c +++ b/drivers/input/serio/sa1111ps2.c @@ -74,7 +74,7 @@ static irqreturn_t ps2_rxint(int irq, void *dev_id) scancode = sa1111_readl(ps2if->base + PS2DATA) & 0xff; - if (hweight8(scancode) & 1) + if (parity8(scancode)) flag ^= SERIO_PARITY; serio_interrupt(ps2if->io, scancode, flag);