From patchwork Sat Feb 8 12:46:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 24343 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1B43B20967 for ; Sat, 8 Feb 2014 12:47:04 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id q200sf4969097ykb.3 for ; Sat, 08 Feb 2014 04:47:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=90Q3/ANMdTuUKa9XF+N7O29lgV6qCwAz6R4s/GhBlsg=; b=ZJYjpbH/l3r3IWxnOEDYAYTIJIuFcx/4TuDZxoRXfNFDoinK141MJbF8b0lFUkALwG tAViZ7PXa5l/Bi4gOKS5C3cbAayfYK6yjJicNJyBBN+t4ufCgDYfP3VmsHXGJ6yPmeZU PXBTvd58bsWo4uuejvr1z97icNqjS160LudkKXTbvy0wMZDl03wrqXUqitrzjtDc8r53 vtlSE+bOE47ZyFW8ZEfwE+wZq+7iptumldg1pAxoB7GVVZlb3dx8xJvcgoUWAc4D0aLL cTiMZ7/p22C2PaP0DqZe8PW9+18xXSNbQ2LMWY7FEGmYPOgvRAtUgYTOEUT9fwq/RLEm Oiiw== X-Gm-Message-State: ALoCoQn11irqxRPdSVX0oH44Bo7hpWtpipU9EH3Z1KP8Tjcp06bK4TuC6ERjLlHppIAg8Mu2xp1q X-Received: by 10.58.219.196 with SMTP id pq4mr7726468vec.4.1391863623248; Sat, 08 Feb 2014 04:47:03 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.195 with SMTP id 61ls1305087qgv.19.gmail; Sat, 08 Feb 2014 04:47:03 -0800 (PST) X-Received: by 10.221.29.196 with SMTP id rz4mr14881152vcb.8.1391863623176; Sat, 08 Feb 2014 04:47:03 -0800 (PST) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id io9si2454883vcb.137.2014.02.08.04.47.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 04:47:03 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id cz12so3688791veb.12 for ; Sat, 08 Feb 2014 04:47:02 -0800 (PST) X-Received: by 10.220.250.203 with SMTP id mp11mr3646581vcb.2.1391863622800; Sat, 08 Feb 2014 04:47:02 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp31256vcz; Sat, 8 Feb 2014 04:47:02 -0800 (PST) X-Received: by 10.68.43.2 with SMTP id s2mr25885508pbl.60.1391863621761; Sat, 08 Feb 2014 04:47:01 -0800 (PST) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id xk2si8510131pab.274.2014.02.08.04.47.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 04:47:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id rq2so4366417pbb.23 for ; Sat, 08 Feb 2014 04:47:01 -0800 (PST) X-Received: by 10.66.146.199 with SMTP id te7mr14010175pab.106.1391863621267; Sat, 08 Feb 2014 04:47:01 -0800 (PST) Received: from localhost ([39.182.20.40]) by mx.google.com with ESMTPSA id e3sm23318131pbc.17.2014.02.08.04.46.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 08 Feb 2014 04:47:00 -0800 (PST) From: Hanjun Guo To: "Rafael J. Wysocki" Cc: linux-acpi@vger.kernel.org, patches@linaro.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [PATCH 1/2] ACPI / processor: Replace hard-coded "ACPI0007" with ACPI_PROCESSOR_DEVICE_HID Date: Sat, 8 Feb 2014 20:46:25 +0800 Message-Id: <1391863586-3157-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Replace "ACPI0007" with ACPI_PROCESSOR_DEVICE_HID to improve code readability. Signed-off-by: Hanjun Guo --- drivers/acpi/processor_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index a4eea9a..849cfd6 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -390,5 +390,6 @@ void __init acpi_early_processor_set_pdc(void) acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, early_init_pdc, NULL, NULL, NULL); - acpi_get_devices("ACPI0007", early_init_pdc, NULL, NULL); + acpi_get_devices(ACPI_PROCESSOR_DEVICE_HID, + early_init_pdc, NULL, NULL); }