From patchwork Wed Apr 6 10:15:08 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: 8760491 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 E8A4DC0553 for ; Wed, 6 Apr 2016 10:16:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D0F6201D3 for ; Wed, 6 Apr 2016 10:16:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48470201BB for ; Wed, 6 Apr 2016 10:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964933AbcDFKPf (ORCPT ); Wed, 6 Apr 2016 06:15:35 -0400 Received: from m50-134.163.com ([123.125.50.134]:56893 "EHLO m50-134.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964928AbcDFKPd (ORCPT ); Wed, 6 Apr 2016 06:15:33 -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=DjZal5cfURypYnq2l0RJNnSV+gkTG/wlnp 4LfLZ0AfKplutZL4lKRg6q/aB3GseFINDnIyKN2PFhEQ7JoieklFaoCaGfbZcQlH u6Oad+gSAvlRYAUhbUBBdfmnswFYxa9Xmn30nPbg/hdMYtoKIT74eMacrpXLOvyu alpvArCqM= Received: from zhaoxiuzeng-VirtualBox.spreadtrum.com (unknown [112.95.225.98]) by smtp4 (Coremail) with SMTP id DtGowAB36EKs4QRXvGALAA--.3489S2; Wed, 06 Apr 2016 18:15:11 +0800 (CST) From: zengzhaoxiu@163.com To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiu Zeng Subject: [PATCH v2 26/30] input: use parity8 in sa1111ps2 Date: Wed, 6 Apr 2016 18:15:08 +0800 Message-Id: <1459937708-8368-1-git-send-email-zengzhaoxiu@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <57031D9D.801@gmail.com> References: <57031D9D.801@gmail.com> X-CM-TRANSID: DtGowAB36EKs4QRXvGALAA--.3489S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtr4DXr15Gw4fXw1fZFykuFg_yoWxZrg_WF n0yFs2gF1vkFWayw1DJrsxXF98t3ZavFWFgw15ta43Gr1UC3yDJa48CFyrJrn5Xr4Uur17 XryDGr9a9w4xWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0fR67UUUUU== X-Originating-IP: [112.95.225.98] X-CM-SenderInfo: p2hqw6xkdr5xrx6rljoofrz/xtbBDRFDgFaDmOeyfgAAs5 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);