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: 9467801 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 70B8560586 for ; Fri, 9 Dec 2016 10:31:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66671285B7 for ; Fri, 9 Dec 2016 10:31:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A9942861C; Fri, 9 Dec 2016 10:31:28 +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=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FC4E285B7 for ; Fri, 9 Dec 2016 10:31:27 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 40338267756; Fri, 9 Dec 2016 11:31:25 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 02029267759; Fri, 9 Dec 2016 11:29:06 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 36C8B267459; Thu, 8 Dec 2016 13:37:11 +0100 (CET) Received: from mail-wj0-f195.google.com (mail-wj0-f195.google.com [209.85.210.195]) by alsa0.perex.cz (Postfix) with ESMTP id 9805226698E for ; Thu, 8 Dec 2016 13:37:08 +0100 (CET) Received: by mail-wj0-f195.google.com with SMTP id j10so26944734wjb.3 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=Km9x4eIJPnLg/dfgFkU678CjlreOqujBZ/uDGNXKQM1LDnK9qRcxfN4zdm+fWkiCtU 4L+/26zBSPz7RoK580/+9zzBw+Z7Ux3PpJC1HgS+OKmB/0o9+9nclfPkXG+1iZiH1Fch ejSRck0mjd98I3XouVhjD9gDKZtCNNkFIZw3jYPWTsMC7MPD5+pmHWNsvvnRKEiRNgnK zDmdpSJVJwqmK0s+gAMV1Lztvc8ULFTnAI0Npli+oqJ2yfqYbEPTgm9HFhMMVDAszGCb TNsjkZZCv55PyZTFRRqgtgat2gNQjYIPshG9aEaGxTj6+iVxkYPE5R40kTDkj/ZDIuyd 7V+w== X-Gm-Message-State: AKaTC01bmNdcvfi/SuuebDiaWKHJv9ZvRssRYLG020ptMscQPdzfXHRj3s5Ygh2wvIpN3Q== 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 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 X-Mailman-Approved-At: Fri, 09 Dec 2016 10:19:32 +0100 Cc: alsa-devel@alsa-project.org, Louis Davis , linux-kernel@vger.kernel.org, Bob Rodgers , platform-driver-x86@vger.kernel.org, Hui Wang , Alex Hung , Jim Dailey , linux-leds@vger.kernel.org Subject: [alsa-devel] [PATCH 2/7] dell-led: export dell_micmute_led_set() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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