From patchwork Tue Jul 18 21:43:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 108197 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6480159qge; Tue, 18 Jul 2017 14:44:57 -0700 (PDT) X-Received: by 10.98.26.211 with SMTP id a202mr3942044pfa.30.1500414296999; Tue, 18 Jul 2017 14:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414296; cv=none; d=google.com; s=arc-20160816; b=rUIbuQ88M7XvNhFtQNhTnqiL+KdSh3qFIfZs5NHKjQHlwaO3/pvTPOZm9eMrNQbskW SPRIOHoJ85dU4Z8NCt9MvlrRsx1320dKVjEpnvuC3E1wuNNWpD0fr5oizR3TLZZbcYRe FIQ8i+sKpvNEMifMq1FVC/84Pbw8D9pAqKNgphX7Q9QmT5q9elN+gAkS+xAm4DKLKFwB J5tO9uXTpT68N6c3HIIYwv+ycNrPTlFWx9cESliiq0NcqnDGwgyxFNMgwZwbQqp/ncLI F33D5mJUiNzk8zGp6PNtaOP8Ee3V2s1qHUBLSc59+JAX8LqhhwX74AGtipWCXginuGQu jugw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=oAZbF8UApF+3fc4CAjYR2i6KlwImnNEs3bMxty/coTk=; b=n3TKdl0nHgXRxrAxYicIu1Q81U5fARxlP91g4jSFlIrbRuPeTAy7Aq8Ij22u0DRtmV 6wquuWZGcHzJAEgMT3aqc0rBfgCBrR713aw81N0QlXp77c+U+omRJUflCw6doa9Idsi2 YhGALduoYeyF7fB8KVguX6neq/j9l1UTi9Lyv6acPN5XXQeN0B/mK6VdzHpna5mpQLCH VJBYcz9vi4rpHNZYo9aueb4d58ehxlXnZ8Q1nphGQspHj39TEMxLm6bD4lsRKkUDGpY3 V156lpuoRiiLIV2T4Kp2pqX5ZDtPZMCIeFyFtv2lNoTkv7IPmMY99M7wZDfuF+snj26V PJag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si2605785pld.16.2017.07.18.14.44.56; Tue, 18 Jul 2017 14:44:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752868AbdGRVoy (ORCPT + 7 others); Tue, 18 Jul 2017 17:44:54 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33268 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbdGRVot (ORCPT ); Tue, 18 Jul 2017 17:44:49 -0400 Received: by mail-pf0-f196.google.com with SMTP id e199so4072266pfh.0; Tue, 18 Jul 2017 14:44:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xuhACEe+xcOTHkpkkMw4UbF6D4z9xh6UbHUSGQ04uZY=; b=GTQBN9HjgGBe8yCwCiolQPOtIaIaCA0ljfi5Pwt9FYdTZz/2bciorY5dBVaTq3a6/B bAS2JgbjGCi46wfKiCkkp7RVdDBOKKXsT9LD0h5l/GmVyIu4M7hopijKX3x9ulndVO+f 9hEoc1R+YgVGpbtEeutrRNaix6At+C5b2t7Vo1gLjiOZTgDEy1CzaS+rKuploqtpuFOE c3GaTDALVo1ZOFxZt4iW/LEOzsi4h6+po5Q8RYTKdPJR6TN9MhXJycaAMnqq0AugNXC4 W529tmdy9AmAbSjx7pTXZa0/cSAgGvNrB1KYEaJB9UfrZMpAQFOIveh1F+gTfFlGobJr g1qQ== X-Gm-Message-State: AIVw113f7IPSbAsdxqjJSF6DAb/fRC87A0HzySNJ03PUZQZglj65gjiN PTGhi7vqv4l3GA== X-Received: by 10.98.208.198 with SMTP id p189mr3957995pfg.10.1500414288876; Tue, 18 Jul 2017 14:44:48 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.44.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:48 -0700 (PDT) From: Rob Herring To: Srinivas Kandagatla Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] nvmem: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:20 -0500 Message-Id: <20170718214339.7774-40-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Srinivas Kandagatla --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 4c49285168fb..b0c60338296a 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -794,8 +794,8 @@ struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, addr = of_get_property(cell_np, "reg", &len); if (!addr || (len < 2 * sizeof(u32))) { - dev_err(&nvmem->dev, "nvmem: invalid reg on %s\n", - cell_np->full_name); + dev_err(&nvmem->dev, "nvmem: invalid reg on %pOF\n", + cell_np); rval = -EINVAL; goto err_mem; }