From patchwork Mon Mar 20 09:32:24 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: 9634047 X-Patchwork-Delegate: dvhart@infradead.org 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 0E50C6020B for ; Mon, 20 Mar 2017 12:47:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0398F27C05 for ; Mon, 20 Mar 2017 12:47:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC4AC27DC2; Mon, 20 Mar 2017 12:47:36 +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 9E1DB27C05 for ; Mon, 20 Mar 2017 12:47:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753387AbdCTMp7 (ORCPT ); Mon, 20 Mar 2017 08:45:59 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34021 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753378AbdCTJcf (ORCPT ); Mon, 20 Mar 2017 05:32:35 -0400 Received: by mail-lf0-f66.google.com with SMTP id y193so9602195lfd.1 for ; Mon, 20 Mar 2017 02:32:34 -0700 (PDT) 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=jsIqqUSbv7K82L5H/r1aRjoRPSsNwFMXM35j/aQgMFw=; b=WOqqpsSJvOuy8q3qaPzZ7/snqYB1UDoqRgBrI50GestfoNBe7rX4N1HAlg3CNw6jLQ +HQZRyHw5mIMx646qCAX07QmFIwAhDVkSNIdRrOivPKzjQuLn9xgGBjcZwx4tFRKmgXC 2id/JPSs/pLtDcYwMQWYZ0yaG2lbnF2NwBKkw= 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=jsIqqUSbv7K82L5H/r1aRjoRPSsNwFMXM35j/aQgMFw=; b=rMUzh+OqajJ/zXUATGtad3QJrf7EeusiHFAHXk/sTffwPIZkr6VaueIkzR/lqPHu0y mwFa92lSljJTieAn0R28Oi1YjMptIj5ZR7HDZ+SJ0wQGuU3g/PgiYnK5zNSeKagYL67W 9i9MqVFqxaVprY61GglrE5v+4rEGQ5OdkI5BFDgAQwcxwWE8sX8fLEvkv9e/o7/G7Ydi b0iQqzsIFYMP7LbQQRfVmCEsS9q14qdHMlHxI+i4XFX2WnvpdyPQARi5M5kX0Y0yT1OU gtGTIYxDWKz0JcbSCPOCUM6P87Zw1vF+5betzZcpcHvcZaJBx9KVsjx4a8M84xbx5LFp 15gg== X-Gm-Message-State: AFeK/H1Z3z65qUzSuM502gLh0ntFs1ayffiBrF65svykUFhZBsmUvi5WC9k0OR++03Cwqg== X-Received: by 10.25.33.208 with SMTP id h199mr7782327lfh.68.1490002353248; Mon, 20 Mar 2017 02:32:33 -0700 (PDT) Received: from ozzy.nask.waw.pl ([2001:a10:160:3::3]) by smtp.googlemail.com with ESMTPSA id 4sm2918755ljf.33.2017.03.20.02.32.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Mar 2017 02:32:32 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= To: Jonathan Woithe , Darren Hart , Andy Shevchenko Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] platform/x86: fujitsu-laptop: remove keycode fields from struct fujitsu_bl Date: Mon, 20 Mar 2017 10:32:24 +0100 Message-Id: <20170320093224.18541-9-kernel@kempniu.pl> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170320093224.18541-1-kernel@kempniu.pl> References: <20170320093224.18541-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 the keycode[1-5] fields from struct fujitsu_bl as they are not needed any more as a result of the sparse keymap migration. Signed-off-by: Michał Kępień --- drivers/platform/x86/fujitsu-laptop.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c index 1487eb2396c6..34c913e621b6 100644 --- a/drivers/platform/x86/fujitsu-laptop.c +++ b/drivers/platform/x86/fujitsu-laptop.c @@ -139,7 +139,6 @@ struct fujitsu_bl { struct input_dev *input; char phys[32]; struct backlight_device *bl_device; - int keycode1, keycode2, keycode3, keycode4, keycode5; unsigned int max_brightness; unsigned int brightness_changed; @@ -1130,11 +1129,6 @@ static int __init fujitsu_init(void) fujitsu_bl = kzalloc(sizeof(struct fujitsu_bl), GFP_KERNEL); if (!fujitsu_bl) return -ENOMEM; - fujitsu_bl->keycode1 = KEY_PROG1; - fujitsu_bl->keycode2 = KEY_PROG2; - fujitsu_bl->keycode3 = KEY_PROG3; - fujitsu_bl->keycode4 = KEY_PROG4; - fujitsu_bl->keycode5 = KEY_RFKILL; ret = acpi_bus_register_driver(&acpi_fujitsu_bl_driver); if (ret)