From patchwork Wed May 11 09:22:30 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: 9066571 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B89219F1C3 for ; Wed, 11 May 2016 09:27:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE1072015A for ; Wed, 11 May 2016 09:27:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D0D420154 for ; Wed, 11 May 2016 09:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693AbcEKJX6 (ORCPT ); Wed, 11 May 2016 05:23:58 -0400 Received: from m50-138.163.com ([123.125.50.138]:40375 "EHLO m50-138.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751552AbcEKJWl (ORCPT ); Wed, 11 May 2016 05:22:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=tevr5WaI2aVj6BZPTj mBBCMi+CG5zjpAgqvHLvHiaBI=; b=RRku888kJNQ2hcj4KpAmc5OmQiIPEdgbP8 VnvnVdsMnpVLns1WaujIxNy/AJdJ5XGly6hj0kUNS4nwcrAGq6QI5erC912bM+rp xM9raVJ514kdoo6QIJsodjDyOsfM+1AJ8aIUNrJZA252M97/Eib/W4H+VJnBNLK4 RwGjsSU00= Received: from zhaoxiuzeng-VirtualBox.spreadtrum.com (unknown [112.95.225.98]) by smtp1 (Coremail) with SMTP id C9GowAD3LcTZ+TJX2_V2AA--.1718S2; Wed, 11 May 2016 17:22:37 +0800 (CST) From: zengzhaoxiu@163.com To: linux-kernel@vger.kernel.org Cc: Zhaoxiu Zeng , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [patch V4 24/31] input: use parity8 in pcips2 Date: Wed, 11 May 2016 17:22:30 +0800 Message-Id: <1462958552-25843-1-git-send-email-zengzhaoxiu@163.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462955158-28394-1-git-send-email-zengzhaoxiu@163.com> References: <1462955158-28394-1-git-send-email-zengzhaoxiu@163.com> X-CM-TRANSID: C9GowAD3LcTZ+TJX2_V2AA--.1718S2 X-Coremail-Antispam: 1Uf129KBjvdXoWruw15Gr1fKF43JFyfWFy3Arb_yoW3Jrb_WF Z0kFsaqa1vkFWYyr1DArsIqr90ganYqa4Fkw15t3W5KFykur1rJa48uF93t3WSgr1kuw17 J3srG3ykZw4fWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUeebyJUUUUU== X-Originating-IP: [112.95.225.98] X-CM-SenderInfo: p2hqw6xkdr5xrx6rljoofrz/1tbiMB1mgFWBV7JRrAAAsH Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-8.2 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 Acked-by: Dmitry Torokhov --- drivers/input/serio/pcips2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio/pcips2.c b/drivers/input/serio/pcips2.c index e862c6e..a51e7f0 100644 --- a/drivers/input/serio/pcips2.c +++ b/drivers/input/serio/pcips2.c @@ -77,7 +77,7 @@ static irqreturn_t pcips2_interrupt(int irq, void *devid) flag = (status & PS2_STAT_PARITY) ? 0 : SERIO_PARITY; - if (hweight8(scancode) & 1) + if (parity8(scancode)) flag ^= SERIO_PARITY; serio_interrupt(ps2if->io, scancode, flag);