From patchwork Wed Mar 16 19:37:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Prakash, Prashanth" X-Patchwork-Id: 8603791 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1DC2B9F6E1 for ; Wed, 16 Mar 2016 19:37:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 400DF202F0 for ; Wed, 16 Mar 2016 19:37:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5651C202A1 for ; Wed, 16 Mar 2016 19:37:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935124AbcCPThU (ORCPT ); Wed, 16 Mar 2016 15:37:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60428 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932586AbcCPThT (ORCPT ); Wed, 16 Mar 2016 15:37:19 -0400 Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 6D00E6026D; Wed, 16 Mar 2016 19:37:18 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5B2BA611D1; Wed, 16 Mar 2016 19:37:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from pprakash-lnx.qualcomm.com (unknown [129.46.15.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pprakash@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C00C16026D; Wed, 16 Mar 2016 19:37:16 +0000 (UTC) From: Prashanth Prakash To: linux-acpi@vger.kernel.org Cc: harba@codeaurora.org, rjw@rjwysocki.net, "Jonathan (Zhixiong) Zhang" Subject: [PATCH 1/3] ACPI: move ACPI_SYSTEM_HID to acpi_drivers.h Date: Wed, 16 Mar 2016 13:37:00 -0600 Message-Id: <1458157022-18633-2-git-send-email-pprakash@codeaurora.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1458157022-18633-1-git-send-email-pprakash@codeaurora.org> References: <1458157022-18633-1-git-send-email-pprakash@codeaurora.org> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Jonathan (Zhixiong) Zhang" ACPI_SYSTEM_HID is defined in drivers/acpi/bus.c out-of-band. Move the definition to include/acpi/acpi_drivers.h, together with other Linux specific HIDs, so that it can be used by other code. Signed-off-by: Jonathan (Zhixiong) Zhang --- drivers/acpi/scan.c | 3 ++- include/acpi/acpi_drivers.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 407a376..358e3c8 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -13,6 +13,8 @@ #include #include +#include + #include #include "internal.h" @@ -22,7 +24,6 @@ ACPI_MODULE_NAME("scan"); extern struct acpi_device *acpi_root; #define ACPI_BUS_CLASS "system_bus" -#define ACPI_BUS_HID "LNXSYBUS" #define ACPI_BUS_DEVICE_NAME "System Bus" #define ACPI_IS_ROOT_DEVICE(device) (!(device)->parent) diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 29c6912..3638f6f 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h @@ -52,6 +52,7 @@ #define ACPI_POWER_HID "LNXPOWER" #define ACPI_PROCESSOR_OBJECT_HID "LNXCPU" #define ACPI_SYSTEM_HID "LNXSYSTM" +#define ACPI_BUS_HID "LNXSYBUS" #define ACPI_THERMAL_HID "LNXTHERM" #define ACPI_BUTTON_HID_POWERF "LNXPWRBN" #define ACPI_BUTTON_HID_SLEEPF "LNXSLPBN"