From patchwork Wed May 11 09:22:42 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: 9066451 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 665F3BF29F for ; Wed, 11 May 2016 09:23:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D62520154 for ; Wed, 11 May 2016 09:23:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C3282200DE for ; Wed, 11 May 2016 09:23:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932150AbcEKJW4 (ORCPT ); Wed, 11 May 2016 05:22:56 -0400 Received: from m50-132.163.com ([123.125.50.132]:33193 "EHLO m50-132.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932090AbcEKJWy (ORCPT ); Wed, 11 May 2016 05:22:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=lb3C/UCB3lb/Auigp7 5CmwQbefFtEJBr8wboKg8zM6I=; b=XZ3KG33HgzCUJ6Q34LSXKxMZ4dYG9ywXE0 yXDLczvqjWYJ11iRNCWIP9HK/bmD9ZD1g1Vn1Vf/Xel6wK0posjRxUIR3wsFEoo8 MUTsS8IOaialtasfGAQxaqTJKqsw2t68glaoHuWQeibGJAbkVUI8zKE4G6bbIocn c+Kwfn3gw= Received: from zhaoxiuzeng-VirtualBox.spreadtrum.com (unknown [112.95.225.98]) by smtp2 (Coremail) with SMTP id DNGowAD3OLLl+TJX5HBSAA--.16075S2; Wed, 11 May 2016 17:22:49 +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 25/31] input: use parity8 in sa1111ps2 Date: Wed, 11 May 2016 17:22:42 +0800 Message-Id: <1462958564-25892-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: DNGowAD3OLLl+TJX5HBSAA--.16075S2 X-Coremail-Antispam: 1Uf129KBjvdXoWruw15Gr1xCFW8tw17Ww4xCrg_yoW3Grg_WF 1YyFs2qF4vkF1jyw1DJrsxXr90q3ZaqayF9w15t3W3Gr1UC34DJa4kGF1rtrn5Xr48ur17 Xr1DCr9avw47GjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUeebyJUUUUU== X-Originating-IP: [112.95.225.98] X-CM-SenderInfo: p2hqw6xkdr5xrx6rljoofrz/1tbiNQlmgFSINn2nRgAAss 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/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);