From patchwork Thu Jan 21 12:32:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yi Lee X-Patchwork-Id: 8080641 Return-Path: X-Original-To: patchwork-linux-nvdimm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 936A7BEEE5 for ; Thu, 21 Jan 2016 12:32:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAAF020567 for ; Thu, 21 Jan 2016 12:32:49 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E8C5120585 for ; Thu, 21 Jan 2016 12:32:48 +0000 (UTC) Received: from ml01.vlan14.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B7D401A1E89; Thu, 21 Jan 2016 04:32:48 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B27601A1E89 for ; Thu, 21 Jan 2016 04:32:47 -0800 (PST) Received: by mail-pf0-x232.google.com with SMTP id n128so22896213pfn.3 for ; Thu, 21 Jan 2016 04:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=4LJM8nq8w7Wk4RWGVCIR4CS9kNADLJ3Aez7FcHO/IYE=; b=sPwaBAR+hfDaf2ZenPWB4eXafx2Q0OhHy0BxPuBizW/NQQMWdlECS8Hqf9e036f2zn AL9eVxmirNSW6M3Yvhm8jDZP7XCSPN7piqioaKlaG8Z8yTrv11FgwK1ZOwQ/+qwbD3HT mpOdAjzCci6QdBzHQkk/ZdGeCtxUfCHUqeZviRN9tKv0tkxEIfkDdIEH+Tcc66GEMdDI nqMYQU5FiSY9EsDpiWhZXdHLfyd0ZIeHBEX+PhBf37e3YYbU9a6cnetMkfcg62mOqyl2 QUQjR02N0aMtSjPaXSgN/scwHEywACZvF/B1rkGefMUdZzWwt/DEJQLiB5UT7JN88mUs s0yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4LJM8nq8w7Wk4RWGVCIR4CS9kNADLJ3Aez7FcHO/IYE=; b=A2cTsqqj3RvqCt+dbhvHtqRIAb1s7hsixQX39Zrzd1SdB4vNbndlxGsKa/5n/yOB8K /glTnSmTRx8lyW0o2L/zKt0OUOmWoS23U93hiOv1lcU7qFG1sl8I3uX8JWeXGGp0ZPoE p9NBLgxwIzMOA+d7Q9cuXImL0rcTStjLWFgWwzne3yWA6JTBFpBMcxq/8JmpTnYrYt+P TcsyAL+Tk+MYetFPzcs21cuKjOMNqj/JKSDv7+G+WHTDmj7O/MNQORU9t6RPgXTKpffl KsEbMo7DwguRVB0f/ctDms0NxlL2c72j90LzmIGhqKqnbHvxrbw4pL3e/Z0aFFibFEJq 9vVg== X-Gm-Message-State: AG10YOR5C8sD/qAxk7hMdhuS34X3twI/IaeYzfuYUvyaRYc/vkqfsO7jc9zrmFQAqAADLA== X-Received: by 10.98.42.83 with SMTP id q80mr53591576pfq.19.1453379567463; Thu, 21 Jan 2016 04:32:47 -0800 (PST) Received: from linux-uc2j.site ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id 63sm2432199pfo.67.2016.01.21.04.32.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 04:32:45 -0800 (PST) From: "Lee, Chun-Yi" X-Google-Original-From: "Lee, Chun-Yi" To: "Rafael J. Wysocki" Subject: [PATCH] libnvdimm, nfit: Use ACPI_SIG_NFIT instead of hard coded string Date: Thu, 21 Jan 2016 20:32:10 +0800 Message-Id: <1453379530-21727-1-git-send-email-jlee@suse.com> X-Mailer: git-send-email 2.1.4 Cc: linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, "Lee, Chun-Yi" , linux-acpi@vger.kernel.org, Len Brown X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It's minor but that's still better to use ACPI_SIG_NFIT instead of hard coded string. Cc: Ross Zwisler Cc: "Rafael J. Wysocki" Cc: Len Brown Signed-off-by: Lee, Chun-Yi Acked-by: Ross Zwisler --- drivers/acpi/nfit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c index aa45d48..9fb1a6a 100644 --- a/drivers/acpi/nfit.c +++ b/drivers/acpi/nfit.c @@ -1739,7 +1739,7 @@ static int acpi_nfit_add(struct acpi_device *adev) acpi_size sz; int rc; - status = acpi_get_table_with_size("NFIT", 0, &tbl, &sz); + status = acpi_get_table_with_size(ACPI_SIG_NFIT, 0, &tbl, &sz); if (ACPI_FAILURE(status)) { /* This is ok, we could have an nvdimm hotplugged later */ dev_dbg(dev, "failed to find NFIT at startup\n");