From patchwork Fri Feb 24 10:33:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBLxJlwaWXFhA==?= X-Patchwork-Id: 9589863 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E393760578 for ; Fri, 24 Feb 2017 10:34:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8423288DE for ; Fri, 24 Feb 2017 10:34:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC847287F7; Fri, 24 Feb 2017 10:34:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79B7828868 for ; Fri, 24 Feb 2017 10:34:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbdBXKeL (ORCPT ); Fri, 24 Feb 2017 05:34:11 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35767 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751275AbdBXKdp (ORCPT ); Fri, 24 Feb 2017 05:33:45 -0500 Received: by mail-lf0-f66.google.com with SMTP id z127so1165740lfa.2 for ; Fri, 24 Feb 2017 02:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kempniu.pl; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MFUiS6Fp6n//JhdbYozPei/p3todHYOdPZeeRpWcTBk=; b=LtP6FESNnNEWoxnal4LuRdNM4Zoy72lJEJ7eQRgHlJ5BvI8JngXIUNPOlUgdOuKgIm VOybZGT7Y9FO7kMK8zVRYZKsJY9jTzvm/2xuf4HzYhtbMTtyZVUT3//dQCpm4Zb6sW4I dJvpPF10WXxHpH5KG6kz/Q4hobCJJWncXcXKs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MFUiS6Fp6n//JhdbYozPei/p3todHYOdPZeeRpWcTBk=; b=OX/jG3fgaCSmuvCk55M+JiYLkuwyNnRfnSUiJYjY0Rl09oUcjFkVpGOL+y0NmvDM5M VZkNvpvgMBp+3Y7cPzqqBS0ipH2AvQxTHuy2Yky/EO8VPHeVzOOPyAl+0iLfGPow3bzz 83nG8zWrHWWAa7noUtZtifTC4qplrxGygqSQWngUZvon0aqc3yvrW/YKK6s10FuMCqJ4 LY5GsxtZ/vkSOU+LDEYBruuzQ2pXatSCIlHZqU8nGzXpXGR4Za0s9Yu5z3qDJMwMgtgl kl3W+YEDkwn82m6BzBUOUHwnG0KGRt7hO/Wl6H3DCFU5q/s/rlYrWjAnxEcbDQp+dgfZ ZF0A== X-Gm-Message-State: AMke39lRY32Mn6zxntzZkcZFfmizZrwss/lSTc9mpEAqs5NUZgVV1/NR6q5LYQMIqqJrUw== X-Received: by 10.25.210.148 with SMTP id j142mr642231lfg.34.1487932397927; Fri, 24 Feb 2017 02:33:17 -0800 (PST) Received: from ozzy.nask.waw.pl ([2001:a10:160:3::3]) by smtp.googlemail.com with ESMTPSA id x26sm8678538lja.10.2017.02.24.02.33.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Feb 2017 02:33:17 -0800 (PST) From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= To: Alex Hung , Darren Hart , Andy Shevchenko Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] platform/x86: intel-hid: remove redundant set_bit() call Date: Fri, 24 Feb 2017 11:33:09 +0100 Message-Id: <20170224103309.19463-5-kernel@kempniu.pl> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170224103309.19463-1-kernel@kempniu.pl> References: <20170224103309.19463-1-kernel@kempniu.pl> MIME-Version: 1.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove redundant set_bit() call for KEY_RFKILL as it is already made by sparse_keymap_setup() due to KEY_RFKILL being assigned to event code 8 in intel_hid_keymap. Signed-off-by: Michał Kępień --- drivers/platform/x86/intel-hid.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c index b17f33b832c2..5eab31659cba 100644 --- a/drivers/platform/x86/intel-hid.c +++ b/drivers/platform/x86/intel-hid.c @@ -155,7 +155,6 @@ static int intel_hid_input_setup(struct platform_device *device) priv->input_dev->dev.parent = &device->dev; priv->input_dev->name = "Intel HID events"; priv->input_dev->id.bustype = BUS_HOST; - set_bit(KEY_RFKILL, priv->input_dev->keybit); return input_register_device(priv->input_dev); }