From patchwork Thu Dec 8 12:36:13 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: 9466337 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 267E86071E for ; Thu, 8 Dec 2016 12:38:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AEA1284EC for ; Thu, 8 Dec 2016 12:38:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FC1728526; Thu, 8 Dec 2016 12:38:57 +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 B7D77284EC for ; Thu, 8 Dec 2016 12:38:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753398AbcLHMim (ORCPT ); Thu, 8 Dec 2016 07:38:42 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:34487 "EHLO mail-wj0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753706AbcLHMhJ (ORCPT ); Thu, 8 Dec 2016 07:37:09 -0500 Received: by mail-wj0-f195.google.com with SMTP id xy5so54263701wjc.1 for ; Thu, 08 Dec 2016 04:37:08 -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=BBmNFheQUEVXY9XS+XEk1/OeYZ+EKVBKaLKbCA/A0LY=; b=L+xmiyghZ8wQtKohapoUa+yd0E0wAf+Xb6a4bQqY3zHfglvaRwi0mv03qr1z+aofY4 Ox/HNbytnv7trir0Eu08mtA6l41iX8/mFBL4Jl+jyNCObx6/GclJK6s8oxuhwfTIBEY5 wHHlQLeHEjb2E8d+5A08nc3eTHAyWKNFTvZt8= 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=BBmNFheQUEVXY9XS+XEk1/OeYZ+EKVBKaLKbCA/A0LY=; b=MOPcYhHsqnoDgeftEvAwGY4FnGhfeZCOK4KayO3DWbs8Zp2blorSA0JvKGZfX8T50M ga78l0aYL3wjXYVKV4+kLB8YIXuf+b/HtzqZZgN9qg6PlnjUZr2qwfIXOES/C/VVnRG0 XxsdQ8hCzDLju5lF7PM7dlTmFy37vn83PFl4+U3SYZIs+tV2inF0NrMfd2V7/lEAsEtm lIhQD3wXjnXgo2P+4zYuK61E6emjTYqSu1HOHnQmgjil+aXR9FmxkdA42HAMtiCu1MJ6 IyCnnsGUkidceDxp/MXhH6dD25Yw/qdRtSTdG+mF3HzPCuH1Hh419YQwDj/7hp1R0ogq hwlg== X-Gm-Message-State: AKaTC01xgo0SC2HaC2s0DiR/K3hC7YgqvQYX+ixc2UOq3wuj/JZasEeOjpU8np6zNuJItQ== X-Received: by 10.28.138.135 with SMTP id m129mr1987178wmd.36.1481200627905; Thu, 08 Dec 2016 04:37:07 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Dec 2016 04:37:07 -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 2/7] dell-led: export dell_micmute_led_set() Date: Thu, 8 Dec 2016 13:36:13 +0100 Message-Id: <20161208123618.28603-3-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 When the dell_app_wmi_led_set() method was introduced in db6d8cc ("dell-led: add mic mute led interface"), it was implemented as an easily extensible entry point for other modules to set the state of various LEDs. However, almost three years later it is still only used to control the mic mute LED, so it will be replaced with direct calls to dell_micmute_led_set(). For this to be possible, dell_micmute_led_set() has to be exported first. Signed-off-by: Michał Kępień --- drivers/leds/dell-led.c | 3 ++- include/linux/dell-led.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/leds/dell-led.c b/drivers/leds/dell-led.c index e8e8f67..b215248 100644 --- a/drivers/leds/dell-led.c +++ b/drivers/leds/dell-led.c @@ -46,7 +46,7 @@ MODULE_ALIAS("wmi:" DELL_LED_BIOS_GUID); #define GLOBAL_MIC_MUTE_ENABLE 0x364 #define GLOBAL_MIC_MUTE_DISABLE 0x365 -static int dell_micmute_led_set(int state) +int dell_micmute_led_set(int state) { struct calling_interface_buffer *buffer; struct calling_interface_token *token; @@ -69,6 +69,7 @@ static int dell_micmute_led_set(int state) return state; } +EXPORT_SYMBOL_GPL(dell_micmute_led_set); int dell_app_wmi_led_set(int whichled, int on) { diff --git a/include/linux/dell-led.h b/include/linux/dell-led.h index 7009b8b..1b03275 100644 --- a/include/linux/dell-led.h +++ b/include/linux/dell-led.h @@ -5,6 +5,7 @@ enum { DELL_LED_MICMUTE, }; +int dell_micmute_led_set(int on); int dell_app_wmi_led_set(int whichled, int on); #endif