Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp214346pxb; Mon, 16 Aug 2021 03:57:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQXzQDec9qVp5cW+PiJbXJOkXXq9lHXf9rEhqBi7DK6l48q7E91x6F4WRw7jhYEZxc6fiB X-Received: by 2002:a50:ed99:: with SMTP id h25mr19981394edr.327.1629111448322; Mon, 16 Aug 2021 03:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629111448; cv=none; d=google.com; s=arc-20160816; b=FhqYaY8bdbPEWnVgIkBNmcag7PyoguqnbY4zeWCwRQ6uB2PdhyolQ9A4BseyG8npil aYKlFnqO9FOahTvEC74T63dyPYNBgxN0Wp9iYrwX8aEKwNW9d/Jq1qzcK4YQXuK2M3Iy mrOsORxtQSAMMYNpg42MsxaS+XvpOjieWPR9iV2IdNnNTUJoH6fqZbCmqi2mJNrFArtV mQjBsDu5IeF1iWw0FWG/H3KxJqD4jeQKi7dj6afPRHykZmqu8rtNnZlbt7aN+4c3ceif jFhWMzVIODEKEA9nrQKX0eKmCd1JvIp5I0fwx8hoB+OurFG2mWBBfWw1TdRBJbODApgS cCNw== 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=ABi+oTOABaL5JLiG/789EHmf2HXyVbTKWcT8RvKhKKE=; b=j6v7xZEv7+qHKfayXAN+kvgyJ4cH7arvfObKpoaNKQRyEjZRAhSgWItzUyCbNsY+lO UFpR4/shm9DkhZybuUXOKALnEuDzxPvraYJoM4AUJCINX2rNBdk38uxMtq1n7Ze5kSI9 h5aSfZcFsSUDZ0GjqT0Zk5Pf1jQxjm/c16X5LMRveoyRaz6YX70Na3dDUrF9xSm+c4L+ F4tZPkixU9SgKM9peVSrvXqdsPrtV5IZAO00CNVUEBTxgsVyZjkY8Lu8mfmTLahFFbSQ tb8OSFGmS+3ArZtvZZkBiO7BddKLhAjqA2bEprczJZRnU5vE10nkDzTZP6CU5gGPUv1d 5uyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K5lMtYwh; 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 v21si10414185ejk.582.2021.08.16.03.57.05; Mon, 16 Aug 2021 03:57:28 -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=K5lMtYwh; 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 S236244AbhHPKzn (ORCPT + 99 others); Mon, 16 Aug 2021 06:55:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:48517 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236195AbhHPKz3 (ORCPT ); Mon, 16 Aug 2021 06:55:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629111297; 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=ABi+oTOABaL5JLiG/789EHmf2HXyVbTKWcT8RvKhKKE=; b=K5lMtYwhR3NlQnYVpqjmnlEp6iyLQmL7kIhH2m352M5z5gVY2F7sDLMggHuErJtpYwP2xJ 3dc7xYJXlrkAKL6oMRERqeQdrIBjTh1DUTfWUnt8jCAkDhnym+VYpCYi4yYYPUPvMB0SXc f8tmJt5yGWTSohyPOAVjn+ZWbuDFcu8= 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-241-UZDzudYaMwWSRskfmWAbEw-1; Mon, 16 Aug 2021 06:54:56 -0400 X-MC-Unique: UZDzudYaMwWSRskfmWAbEw-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 2E5C81008060; Mon, 16 Aug 2021 10:54:54 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.64.242.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8404D5C23A; Mon, 16 Aug 2021 10:54:47 +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 18/20] platform/x86: intel-vbtn: Move to intel sub-directory Date: Mon, 16 Aug 2021 18:51:17 +0800 Message-Id: <20210816105119.704302-19-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-vbtn to intel sub-directory to improve readability. 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 | 3 +++ drivers/platform/x86/{intel-vbtn.c => intel/vbtn.c} | 0 5 files changed, 16 insertions(+), 15 deletions(-) rename drivers/platform/x86/{intel-vbtn.c => intel/vbtn.c} (100%) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 3d1cb7f03309..3a087cb140cb 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -677,19 +677,6 @@ config INTEL_MENLOW If unsure, say N. -config INTEL_VBTN - tristate "INTEL VIRTUAL BUTTON" - depends on ACPI - depends on INPUT - depends on I2C - select INPUT_SPARSEKMAP - help - This driver provides support for the Intel Virtual Button interface. - Some laptops require this driver for power button support. - - To compile this driver as a module, choose M here: the module will - be called intel_vbtn. - config MSI_LAPTOP tristate "MSI Laptop Extras" depends on ACPI diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 63e78ed69fb2..a6d90dc56d62 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -70,9 +70,7 @@ obj-$(CONFIG_THINKPAD_LMI) += think-lmi.o # Intel obj-$(CONFIG_X86_PLATFORM_DRIVERS_INTEL) += intel/ - obj-$(CONFIG_INTEL_MENLOW) += intel_menlow.o -obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o # MSI obj-$(CONFIG_MSI_LAPTOP) += msi-laptop.o diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig index 6df6e43d1061..f69fc6b004cf 100644 --- a/drivers/platform/x86/intel/Kconfig +++ b/drivers/platform/x86/intel/Kconfig @@ -53,6 +53,19 @@ config INTEL_INT0002_VGPIO To compile this driver as a module, choose M here: the module will be called intel_int0002_vgpio. +config INTEL_VBTN + tristate "INTEL VIRTUAL BUTTON" + depends on ACPI + depends on INPUT + depends on I2C + select INPUT_SPARSEKMAP + help + This driver provides support for the Intel Virtual Button interface. + Some laptops require this driver for power button support. + + To compile this driver as a module, choose M here: the module will + be called intel_vbtn. + config INTEL_OAKTRAIL tristate "Intel Oaktrail Platform Extras" depends on ACPI diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile index 291219f63b04..58d4ff0502b0 100644 --- a/drivers/platform/x86/intel/Makefile +++ b/drivers/platform/x86/intel/Makefile @@ -16,6 +16,9 @@ intel_int0002_vgpio-y := int0002_vgpio.o obj-$(CONFIG_INTEL_INT0002_VGPIO) += intel_int0002_vgpio.o intel_oaktrail-y := oaktrail.o obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o +CFLAGS_vbtn.o := -I./drivers/platform/x86 +intel-vbtn-y := vbtn.o +obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o # Intel PMIC / PMC / P-Unit devices intel_bxtwc_tmu-y := bxtwc_tmu.o diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel/vbtn.c similarity index 100% rename from drivers/platform/x86/intel-vbtn.c rename to drivers/platform/x86/intel/vbtn.c -- 2.31.1