From patchwork Thu Dec 8 12:36:15 2016 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: 9466313 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 D370C6071E for ; Thu, 8 Dec 2016 12:38:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7857284EC for ; Thu, 8 Dec 2016 12:38:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC26628555; Thu, 8 Dec 2016 12:38:23 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham 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 4729E284EC for ; Thu, 8 Dec 2016 12:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932219AbcLHMiS (ORCPT ); Thu, 8 Dec 2016 07:38:18 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35514 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932265AbcLHMhL (ORCPT ); Thu, 8 Dec 2016 07:37:11 -0500 Received: by mail-wm0-f67.google.com with SMTP id a20so3322240wme.2 for ; Thu, 08 Dec 2016 04:37:11 -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=VymRWmJX+jEdNf+vgXgm1zfZ5IRolHB23ffWwZrPA8c=; b=YIUzmjsX2Pu+ZRMAEG+pM0G5Ms5sG2LALTayCu5w6fLy5UHUrmtTHzb44ZbsJLf2vE +UXt2pWPP4R3g9on8ksX7uhyS+u2ww6kVS9wlPRH4sdQx8l621rk5tUEBaXaz4Qzkgxi j/iVEeuuqPVJwMbvS9Dc0KPoDfzz3tjPTu1oE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VymRWmJX+jEdNf+vgXgm1zfZ5IRolHB23ffWwZrPA8c=; b=H3wOBRzjXwh0Q6fIGRXJIhf22MYKU9CpKztK/ZLP1cvn2V4yirqWCM/ZPpq/kMQ4gG 1YztHFqqvc+zIgm9TEJIHclOLR+Z4eCY5mRxUL+rEGNcxuxvohz09eUAiFazkDdMsxJS ThS7sTKMHv8Wy6DzO7kzDK+Jr32pTK+4sVuqQqtj/XNNh3lnledaPh4139Q27/U+fbEX tUDm44Bt8NwNr6DZKjdlndthykbcV3nQw/r0RC+jKtXYyOgxDMBXYWuC8t7h3AITxjAd DPXyz1GtApWnvueW4k25+u2ZidVHJoD29P9uP+DzDRpFeXkSaXWhpns/aAXvGR06BiE9 ybpA== X-Gm-Message-State: AKaTC02rg7rWCEBcVrWAe70XflyZKH7aicHVDDFnyHNy7LRw6Vqrzp/Syurer8B7Fu0RaA== X-Received: by 10.28.113.76 with SMTP id m73mr1964119wmc.114.1481200630376; Thu, 08 Dec 2016 04:37:10 -0800 (PST) Received: from kmp-mobile.hq.kempniu.pl (kmp-mobile.hq.kempniu.pl. [2001:6a0:200:83b0::2d90]) by smtp.googlemail.com with ESMTPSA id a13sm15095293wma.18.2016.12.08.04.37.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Dec 2016 04:37:09 -0800 (PST) From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= To: Richard Purdie , Jacek Anaszewski , Matthew Garrett , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Darren Hart , Jaroslav Kysela , Takashi Iwai Cc: Bob Rodgers , Louis Davis , Jim Dailey , Alex Hung , Hui Wang , linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] dell-led: remove dell_app_wmi_led_set() Date: Thu, 8 Dec 2016 13:36:15 +0100 Message-Id: <20161208123618.28603-5-kernel@kempniu.pl> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161208123618.28603-1-kernel@kempniu.pl> References: <20161208123618.28603-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 All calls to dell_app_wmi_led_set() have been replaced with direct calls to dell_micmute_led_set(), so the former can be safely removed along with its related enum. Signed-off-by: Michał Kępień Reviewed-by: Pali Rohár --- drivers/leds/dell-led.c | 17 ----------------- include/linux/dell-led.h | 5 ----- 2 files changed, 22 deletions(-) diff --git a/drivers/leds/dell-led.c b/drivers/leds/dell-led.c index b215248..f9002d9 100644 --- a/drivers/leds/dell-led.c +++ b/drivers/leds/dell-led.c @@ -71,23 +71,6 @@ int dell_micmute_led_set(int state) } EXPORT_SYMBOL_GPL(dell_micmute_led_set); -int dell_app_wmi_led_set(int whichled, int on) -{ - int state = 0; - - switch (whichled) { - case DELL_LED_MICMUTE: - state = dell_micmute_led_set(on); - break; - default: - pr_warn("led type %x is not supported\n", whichled); - break; - } - - return state; -} -EXPORT_SYMBOL_GPL(dell_app_wmi_led_set); - struct bios_args { unsigned char length; unsigned char result_code; diff --git a/include/linux/dell-led.h b/include/linux/dell-led.h index 1b03275..3f033c4 100644 --- a/include/linux/dell-led.h +++ b/include/linux/dell-led.h @@ -1,11 +1,6 @@ #ifndef __DELL_LED_H__ #define __DELL_LED_H__ -enum { - DELL_LED_MICMUTE, -}; - int dell_micmute_led_set(int on); -int dell_app_wmi_led_set(int whichled, int on); #endif