Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp218817pxb; Wed, 18 Aug 2021 20:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvAqWjvHLTx5L6tkDCwPIkWEsTgLslX8nF4Cvw/4pomcP6R6o8JdeP1d/s9JdvNsAb9kb1 X-Received: by 2002:aa7:db82:: with SMTP id u2mr14265563edt.299.1629344178933; Wed, 18 Aug 2021 20:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629344178; cv=none; d=google.com; s=arc-20160816; b=BDfxcDDtnGI3vxlDYmruPmPtOmbQkel1vyFhZRla/iatfCF4yl0SqWlKvi7vDtlqW5 D0an+MRyP2uU5RfwiVFQ02GXen4anl1+rgKvawX9yIiPKzlOICRNL1rRlmMmhDc/5vOo vVLrOtupl2GHBOk4oppq7UxV84oekhHOnJj6UMX0ge4dzADofJ8xVuiGbciBMVVu8gB2 QTeXt9cSPMt3UyIEUqzSxDjfCbm+M1pgwuH8OPjpN1wvpQCRuhZKJF1guAM2NcMAgIXt Q3Ipt8YCpxDGTTwzOd/dl4KG0zK0KQBsvOCgzyrAHYOzgMv20E2cm0vZT9QzponuahEs 2Bgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZTNLdaoxX+iY5+/08rni2r7T1taKqPsRPWWtB6v/9TM=; b=unvv0lJWanywyLH7ZckrSIG9bIjUclRSN2zJUaLyV0NBmO9f1NnfdiO97ctK8gmiWW HA4an58QRZWJsSVbdX+lesw1VxTTFeFCEslDC/EjJYZVnrR/sCUaJcxThmtLbvaV/yT7 CPV+QUFUKE9i4eonJEm4Pr2xwqIHmq4MvCY0b8M5HReBGnf75klWIl8NYEa37VyrvpNA 21Rj3KrXEJp9G5EEhAFc0g/n9tnzV+sdD2qpuNc7H5VM3d1U6tQRDkPzWlQ9DUQTb5s4 KWvakdHL/7x1HnK8bEyvjcdnEHd9zsxHG4s7cRxTDMvP+kcK58T/PFp9/25XBAIUEPVJ sqzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KA64I2QW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mq21si1879433ejc.409.2021.08.18.20.35.55; Wed, 18 Aug 2021 20:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KA64I2QW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236908AbhHSDcj (ORCPT + 99 others); Wed, 18 Aug 2021 23:32:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:24348 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236797AbhHSDcc (ORCPT ); Wed, 18 Aug 2021 23:32:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629343916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZTNLdaoxX+iY5+/08rni2r7T1taKqPsRPWWtB6v/9TM=; b=KA64I2QW5RdGivlSgzS40r56L3pViCqxUuNLr1We0xOiUw6WNvjIZcjb/KcjhrfT7HBScq BMpEoRgJrFRL7RWBYV0Yi+bNzO/BmHjcTKDvj4t9rJq+6Q9W8S9ZSHGpdg29aDWJYKvcfN 7Z8Z1YBTsqbigHhzc3xRkywEDLfmPw8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-557-RODtqAJuNAyxz92WEigohg-1; Wed, 18 Aug 2021 23:31:55 -0400 X-MC-Unique: RODtqAJuNAyxz92WEigohg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 382E71008066; Thu, 19 Aug 2021 03:31:53 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.64.242.122]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24C2660657; Thu, 19 Aug 2021 03:31:49 +0000 (UTC) From: Kate Hsuan To: Alex Hung , Hans de Goede , Mark Gross , Srinivas Pandruvada , AceLan Kao , Jithu Joseph , Maurice Ma , Sujith Thomas , Rajneesh Bhardwaj , Zha Qipeng , Mika Westerberg , "David E . Box" , linux-kernel@vger.kernel.org, Dell.Client.Kernel@dell.com Cc: platform-driver-x86@vger.kernel.org, Kate Hsuan Subject: [PATCH v3 15/20] platform/x86: intel-hid: Move to intel sub-directory Date: Thu, 19 Aug 2021 11:29:56 +0800 Message-Id: <20210819033001.20136-16-hpa@redhat.com> In-Reply-To: <20210819033001.20136-1-hpa@redhat.com> References: <20210819033001.20136-1-hpa@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move intel-hid to intel sub-directory to improve readability. Also, add CFLAGS to tweak the including path of dual_accel_detect. Signed-off-by: Kate Hsuan --- drivers/platform/x86/Kconfig | 13 ------------- drivers/platform/x86/Makefile | 2 -- drivers/platform/x86/intel/Kconfig | 13 +++++++++++++ drivers/platform/x86/intel/Makefile | 2 ++ drivers/platform/x86/{intel-hid.c => intel/hid.c} | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) rename drivers/platform/x86/{intel-hid.c => intel/hid.c} (99%) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 196e70a8b264..70cd67703f8f 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -667,19 +667,6 @@ config THINKPAD_LMI source "drivers/platform/x86/intel/Kconfig" -config INTEL_HID_EVENT - tristate "INTEL HID Event" - depends on ACPI - depends on INPUT - depends on I2C - select INPUT_SPARSEKMAP - help - This driver provides support for the Intel HID Event hotkey interface. - Some laptops require this driver for hotkey support. - - To compile this driver as a module, choose M here: the module will - be called intel_hid. - config INTEL_INT0002_VGPIO tristate "Intel ACPI INT0002 Virtual GPIO driver" depends on GPIOLIB && ACPI && PM_SLEEP diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 2a48171c11c1..62494618f890 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -69,11 +69,9 @@ obj-$(CONFIG_IDEAPAD_LAPTOP) += ideapad-laptop.o obj-$(CONFIG_SENSORS_HDAPS) += hdaps.o obj-$(CONFIG_THINKPAD_ACPI) += thinkpad_acpi.o obj-$(CONFIG_THINKPAD_LMI) += think-lmi.o - # Intel obj-$(CONFIG_X86_PLATFORM_DRIVERS_INTEL) += intel/ -obj-$(CONFIG_INTEL_HID_EVENT) += intel-hid.o obj-$(CONFIG_INTEL_INT0002_VGPIO) += intel_int0002_vgpio.o obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig index 01db66ec1462..2241d47dbee7 100644 --- a/drivers/platform/x86/intel/Kconfig +++ b/drivers/platform/x86/intel/Kconfig @@ -21,6 +21,19 @@ source "drivers/platform/x86/intel/int3472/Kconfig" source "drivers/platform/x86/intel/pmt/Kconfig" source "drivers/platform/x86/intel/atomisp2/Kconfig" +config INTEL_HID_EVENT + tristate "INTEL HID Event" + depends on ACPI + depends on INPUT + depends on I2C + select INPUT_SPARSEKMAP + help + This driver provides support for the Intel HID Event hotkey interface. + Some laptops require this driver for hotkey support. + + To compile this driver as a module, choose M here: the module will + be called intel_hid. + config INTEL_BXTWC_PMIC_TMU tristate "Intel BXT Whiskey Cove TMU Driver" depends on REGMAP diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile index 05a012118ea1..ade6dddd0306 100644 --- a/drivers/platform/x86/intel/Makefile +++ b/drivers/platform/x86/intel/Makefile @@ -9,6 +9,8 @@ obj-$(CONFIG_INTEL_SKL_INT3472) += int3472/ obj-$(CONFIG_INTEL_PMT_CLASS) += pmt/ obj-$(CONFIG_INTEL_ATOMISP2_LED) += atomisp2/ obj-$(CONFIG_INTEL_ATOMISP2_PM) += atomisp2/ +intel-hid-y := hid.o +obj-$(CONFIG_INTEL_HID_EVENT) += intel-hid.o # Intel PMIC / PMC / P-Unit devices intel_bxtwc_tmu-y := bxtwc_tmu.o diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel/hid.c similarity index 99% rename from drivers/platform/x86/intel-hid.c rename to drivers/platform/x86/intel/hid.c index 2e4e97a626a5..a33a5826e81a 100644 --- a/drivers/platform/x86/intel-hid.c +++ b/drivers/platform/x86/intel/hid.c @@ -14,7 +14,7 @@ #include #include #include -#include "dual_accel_detect.h" +#include "../dual_accel_detect.h" /* When NOT in tablet mode, VGBS returns with the flag 0x40 */ #define TABLET_MODE_FLAG BIT(6) -- 2.31.1