From patchwork Sun Mar 27 07:38:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiu Zeng X-Patchwork-Id: 8675551 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 C2795C0553 for ; Sun, 27 Mar 2016 07:38:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E849820220 for ; Sun, 27 Mar 2016 07:38:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 055BF2021F for ; Sun, 27 Mar 2016 07:38:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753343AbcC0Hiz (ORCPT ); Sun, 27 Mar 2016 03:38:55 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34519 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930AbcC0Hiz (ORCPT ); Sun, 27 Mar 2016 03:38:55 -0400 Received: by mail-pf0-f196.google.com with SMTP id n5so16640109pfn.1; Sun, 27 Mar 2016 00:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:cc:to:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=y32xu4aZjr2jYzkyI8qznkIa1v+LwZGk8xVYwZljkU4=; b=01yTJ2S1cv9wtG255D4+1E3AE9Aqk93cKAv74BAJBstVaLAMYhzhR1vbtJHYxJM/pq PRbd7YdJrrpQAV5ERFs5lfhrvUF5VbeSx7vcCtt0KFlEcpn7Jj8Or3Dlm16ZcDVVR3IJ +/YSmOZTSXo3/uztFAITSRPGZzK1Fpmz1hye0ktJJmLRxU/HhceG/VTWCct2csz0xxRq +NfmEak+GIvb7NdHkB9GNRDZub8Xu979wEQqErjVxuPH7L42ddhJdL3UamZHa8Kcvpx8 +Xfe7ipW+i0+IiaKd1Anima8Tk/lUTMUi6I8J7SZo4jW+dNkCv6QrcqYQ0jFujOsp0XO bNHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:cc:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=y32xu4aZjr2jYzkyI8qznkIa1v+LwZGk8xVYwZljkU4=; b=gdzZDNFS7k2yPI6CtGRkKg2YYqLgCV2yiR+HByr6wRWcsqvVfwNa3zWuljerGCam7w ywStHDRXf7D4vA2Gjs4V0JrXA2kutY8ls8mw4WNhm3hzLxbbeOypf9HrKsD4o2BdzLi4 tGoTA3YJENicVPrOdGh8ztDfJk19bKiSWajpwisNObrPRtH6kEd9juHFcOFE+zFwRVFg jo7WHaygQY2xJ5Z4snfIPMItCtg1h7Y237ya9NvEbrnBviB/wce/kQZGnOWw6nzwbmyd gmFofCtuJiCu8cfqXehYE9slu/3UDa0ueqkHkpwvgjcUOFDMJRu/IosTDhouMD+JBDMl ztbg== X-Gm-Message-State: AD7BkJKVcU80do2exTjdmpu0Vk4TkwsSQ5jwZdC4+YQJZfbl6cg3iCiweSlrRkHlH1126g== X-Received: by 10.98.73.142 with SMTP id r14mr33774567pfi.140.1459064334453; Sun, 27 Mar 2016 00:38:54 -0700 (PDT) Received: from [0.0.0.0] ([185.100.86.86]) by smtp.googlemail.com with ESMTPSA id ll7sm27179054pab.6.2016.03.27.00.38.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Mar 2016 00:38:54 -0700 (PDT) Subject: [PATCH 26/31] input: serio: use parity8 in pcips2.c References: <1458788612-4367-1-git-send-email-zhaoxiu.zeng@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org To: Dmitry Torokhov From: "zhaoxiu.zeng" Message-ID: <56F78DF3.1050206@gmail.com> Date: Sun, 27 Mar 2016 15:38:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <1458788612-4367-1-git-send-email-zhaoxiu.zeng@gmail.com> 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_ADSP_CUSTOM_MED, 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: Zeng Zhaoxiu Signed-off-by: Zeng Zhaoxiu --- 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);