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: 8080651 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 97F919F744 for ; Thu, 21 Jan 2016 12:32:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC70420567 for ; Thu, 21 Jan 2016 12:32:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04AB120575 for ; Thu, 21 Jan 2016 12:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759324AbcAUMcs (ORCPT ); Thu, 21 Jan 2016 07:32:48 -0500 Received: from mail-pf0-f169.google.com ([209.85.192.169]:35578 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759214AbcAUMcr (ORCPT ); Thu, 21 Jan 2016 07:32:47 -0500 Received: by mail-pf0-f169.google.com with SMTP id 65so22954636pff.2; 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=FZCbx95+0G3GuYvn8XmMB2ILptjyQJxCgSN3/l44qUtLa0WrBGkkCwTScjBKiLw5o0 256AdsjGRO4r3DNkyhLx81rDTpWti51DKVu/uPByDTcMhpfzd1LZOQ4J7GMzontuRgHR F0EuGNkOcTMhYfBErpSsMByuye1gp1nqJ6P81bt+5d1ANSc7Pg+W+ARhGEB+3qrm7j9K a3SXT2pCLUnyuaCjBhzsEEO760PnVirWyqXVoEDPA2ZAzmdihEcMWnmrBuTruA/766VA jtCmcN4Ln+woJ4zj/9nGjAUUkfbd+mmADKvOgJdayj5vRtx/MywXRXj3NhrzzWP6Vz02 QHUw== X-Gm-Message-State: AG10YOT0H+nKgl1znqQDYj6SykX1wC1sNH1LflgEneqjv8GSl1ugVLmqW+3aN/ZghFKyZQ== 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" Cc: linux-nvdimm@lists.01.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, "Lee, Chun-Yi" , Ross Zwisler , Len Brown 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 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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");