Re: [PATCH] nvmem: Convert to using %pOF instead of full_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On 09/08/17 23:14, Rob Herring wrote:
On Tue, Jul 18, 2017 at 4:43 PM, Rob Herring <robh@xxxxxxxxxx> wrote:
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 <robh@xxxxxxxxxx>
Cc: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
---
  drivers/nvmem/core.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Ping?
I have already sent this patch to Greg to queue up for next.

Thanks,
srini



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;
         }
--
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux