Received: by 10.192.165.148 with SMTP id m20csp45993imm; Fri, 20 Apr 2018 02:46:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/nsOkF90csdv6J7MtLLM2umGrgI9Zz0STQW9LQCJgLsFe5dQStmRbF/eWS8KbV4r4ykBiz X-Received: by 2002:a17:902:a8:: with SMTP id a37-v6mr7700620pla.238.1524217576086; Fri, 20 Apr 2018 02:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524217576; cv=none; d=google.com; s=arc-20160816; b=0WDgEOxwQC+smAs4Vh9pRhh1m/3fPC2YkiqizZjsBnrzLAY8FFnZbvV9eBlSrijF9X Cy2N0uj16TvT9HW43m722jVlX0zKKpWW+pWUzD6cMIpACa/ajeT8TyvsLlkQCia+4cuH Hae8TumPJdnnwtcxz1PbCmUtGqduvnYoIgLEDee3S5gF2kg1bYDM1o+StK7g/QD5Kk6Q zt9DGuaNSxqzmj+31PMG0HwMTkTJ4CcR2BtzLJwfIXfUe+spb7B6/WUsOB/etkM8CvIE jAiruVIEXPO6c1rYPQ44WFTtmY0WUapLXLYxdw4sjyxKxox/Jvrlw73LVFxMa9Uwp9JL zoaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GL2Ol4KEaWtD2/dyiPrpGfXOLwTTpS3DniKEioKETFo=; b=P48ntd2E7PGG4GFqjQOSeMGYrBFImFUXUZ8BXY9lhl8cTbhXwmaUDvtC2MDfJnLdVR 7uv6SMiqvTshnMEjkXf1YdJYn/JuBq9adJeHK26bQ1YYYS3XNiI64ykGZJ4j7Nd/bfjZ JUrcbgK0r8W74rZsDHyURt1h+O1suT0zX0htcgJxaC712NBO5Me4Omf3Gx4XkpfZCb4v PQEhuxwWM9sQwaMOwsdksWHG/a6pM5ptue39qFP0ubPpCIX3NIGoF7MF+JYKivXf9vEV Ui52QXrWgP9zhYiiOYMx0OEvWmlI5X1ZYlpX1Ri3U+MIDDsJyclIJyMu5vFpE+BbSbX9 3VKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61-v6si1204895plz.290.2018.04.20.02.46.01; Fri, 20 Apr 2018 02:46:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754435AbeDTJoq (ORCPT + 99 others); Fri, 20 Apr 2018 05:44:46 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:41244 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754354AbeDTJoo (ORCPT ); Fri, 20 Apr 2018 05:44:44 -0400 Received: from [175.41.48.77] (helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1f9Saq-0006ZL-Kx; Fri, 20 Apr 2018 09:44:37 +0000 From: Kai-Heng Feng To: mjg59@srcf.ucam.org, pali.rohar@gmail.com, dvhart@infradead.org, andy@infradead.org, mario.limonciello@dell.com, tiwai@suse.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Kai-Heng Feng Subject: [PATCH v4 1/3] dell-led: Change dell-led.h to dell-common.h Date: Fri, 20 Apr 2018 17:44:30 +0800 Message-Id: <20180420094432.13133-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This header will be used for more than just led. Change it to a more generic name. Cc: Mario Limonciello Signed-off-by: Kai-Heng Feng --- v4: Change the commit message to clarify there's no more runtime pm warning. Also skip the check for thunderbolt attached devices. v3: Simplify dell_switchable_gfx_is_enabled() by returning bool instead of error code. Use DMI_DEV_TYPE_OEM_STRING to match Dell System. v2: Mario suggested to squash the HDA part into the same series. drivers/platform/x86/dell-laptop.c | 2 +- include/linux/{dell-led.h => dell-common.h} | 4 ++-- sound/pci/hda/dell_wmi_helper.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename include/linux/{dell-led.h => dell-common.h} (61%) diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index c52c6723374b..8ba820e6c3d0 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include "dell-rbtn.h" diff --git a/include/linux/dell-led.h b/include/linux/dell-common.h similarity index 61% rename from include/linux/dell-led.h rename to include/linux/dell-common.h index 92521471517f..37e4b614dd74 100644 --- a/include/linux/dell-led.h +++ b/include/linux/dell-common.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __DELL_LED_H__ -#define __DELL_LED_H__ +#ifndef __DELL_COMMON_H__ +#define __DELL_COMMON_H__ int dell_micmute_led_set(int on); diff --git a/sound/pci/hda/dell_wmi_helper.c b/sound/pci/hda/dell_wmi_helper.c index 1b48a8c19d28..56050cc3c0ee 100644 --- a/sound/pci/hda/dell_wmi_helper.c +++ b/sound/pci/hda/dell_wmi_helper.c @@ -4,7 +4,7 @@ */ #if IS_ENABLED(CONFIG_DELL_LAPTOP) -#include +#include enum { MICMUTE_LED_ON, -- 2.17.0