Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp214108pxb; Mon, 16 Aug 2021 03:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIwx5ZHCYr450pPHtCxs/2aup9h46xIuD9+rDzdrBk24/NYssgP1qB6od+gH58CebYxiJu X-Received: by 2002:a50:a69e:: with SMTP id e30mr19189296edc.332.1629111429969; Mon, 16 Aug 2021 03:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629111429; cv=none; d=google.com; s=arc-20160816; b=QqzM305EXwa47J/JASDYPKIjsw+uMe4DW1D1Mfg+DX9bXLo2f6UnDTW4FjcQbJpb0V DbsyzWbM4/XQmprCVWi5a/dc7qRwTGyB02/sCAqdtLI+xcIi/wy5zxNkczTed1hza917 Y4iJBtWGD+xJ+0ZxjnGoZkQU3TLu/8lR+CMqDoru24OCfTVejMhbf4e/CtLXCoO/isEC JgDnGQMUb/hzg0uuXffeJJyfvcWTrPnIluhXan36WzvENaES2RW//0mrNDya9lpYLBDi MkMFA+pBFVM2vuuFmFp71FqgMD+vapfNFYxSIMb0+pig7SrnOsdcCPu46F+xRBCMHeqp caIg== 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=QJsyXOdlJYM2//fxWzSx0kKAbedvDwh5E29u/1ymh/M=; b=NtnpOwg5b3JviXi/ByEUV4weCDqtSIH6EXw+vQ12u1khlLj1HkAojpIXmOOAKOgZBv JmiKZNMkKAuwCwvVhkzR9GhKHL9J3B0sLyF7EVsVkyHBcxmsirO0F+dN6bfI5AH1jf8N zOQb1FXoJlHmpddze/4gskRDKyjZMkrc5rhLakFou2I11FoeWJx67umFLkGsp8PrvRGF hz2bM9DQiLRSl2LUJ3vnLhw9IaRT8RbAHrpdH6s4Iv9t6mFA/7shZHmj6XIEq5L7Xq7T mCE+LCY1sEVj1/Qft4oX9DR7fTaHd7kWXK0TwJ5WjBZAk1zqv7tk2Jv6Lw4AWZVmxO6y bYoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fxky3+0o; 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 ee21si9700086edb.541.2021.08.16.03.56.47; Mon, 16 Aug 2021 03:57:09 -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=fxky3+0o; 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 S236434AbhHPKzS (ORCPT + 99 others); Mon, 16 Aug 2021 06:55:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43232 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236243AbhHPKzI (ORCPT ); Mon, 16 Aug 2021 06:55:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629111276; 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=QJsyXOdlJYM2//fxWzSx0kKAbedvDwh5E29u/1ymh/M=; b=fxky3+0ozPgxKMUifgtfBMDqm3lEp67nmAWj1KzlHsGw+Qyh9tid/I+HGbqbiczZmUfmZW ir3QsbkbtavcujMHMDUHPdn04j9hSjamhZ0IFU0xRhrTIxSL9Mf3c/ZW4ZfSNsgphYjeJc /LVsu6NvmDOUVkj/KvZWlhBI+dSKPS0= 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-61-FoVhOtuPONm3-7VkgzKR7g-1; Mon, 16 Aug 2021 06:54:35 -0400 X-MC-Unique: FoVhOtuPONm3-7VkgzKR7g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 97946192D789; Mon, 16 Aug 2021 10:54:33 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.64.242.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 59C185FC25; Mon, 16 Aug 2021 10:54:30 +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 v2 15/20] platform/x86: intel-hid: Move to intel sub-directory Date: Mon, 16 Aug 2021 18:51:14 +0800 Message-Id: <20210816105119.704302-16-hpa@redhat.com> In-Reply-To: <20210816105119.704302-1-hpa@redhat.com> References: <20210816105119.704302-1-hpa@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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 | 1 - drivers/platform/x86/intel/Kconfig | 13 +++++++++++++ drivers/platform/x86/intel/Makefile | 5 ++++- drivers/platform/x86/{intel-hid.c => intel/hid.c} | 0 5 files changed, 17 insertions(+), 15 deletions(-) rename drivers/platform/x86/{intel-hid.c => intel/hid.c} (100%) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index ac4ec4e2534a..84865e1cf043 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 b5327b6f774a..734a6c266025 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -71,7 +71,6 @@ 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_MENLOW) += intel_menlow.o obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig index 443554133f20..4ca7bec080e7 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 fd2d274f294f..e47e6ac4b5eb 100644 --- a/drivers/platform/x86/intel/Makefile +++ b/drivers/platform/x86/intel/Makefile @@ -9,6 +9,9 @@ obj-$(CONFIG_INTEL_SKL_INT3472) += int3472/ obj-$(CONFIG_INTEL_PMT_CLASS) += pmt/ obj-$(CONFIG_INTEL_ATOMISP2_LED) += atomisp2/ obj-$(CONFIG_INTEL_ATOMISP2_PM) += atomisp2/ +CFLAGS_hid.o := -I./drivers/platform/x86 +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 @@ -39,4 +42,4 @@ intel_turbo_max_3-y := turbo_max_3.o obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o intel-uncore-frequency-y := uncore-frequency.o obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o -obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += speed_select_if/ \ No newline at end of file +obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += speed_select_if/ diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel/hid.c similarity index 100% rename from drivers/platform/x86/intel-hid.c rename to drivers/platform/x86/intel/hid.c -- 2.31.1