ata: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:42:48 +0000 (16:42 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 18 Jul 2017 22:02:36 +0000 (18:02 -0400)
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@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_svw.c

index 0fd6ac7e57ba1139820c3f1d3461691d91ee0052..a9d692c6c182d4d0d72e3f698f8eb7635a16fb4f 100644 (file)
@@ -339,7 +339,7 @@ static int k2_sata_show_info(struct seq_file *m, struct Scsi_Host *shost)
                if (!reg)
                        continue;
                if (index == *reg) {
-                       seq_printf(m, "devspec: %s\n", np->full_name);
+                       seq_printf(m, "devspec: %pOF\n", np);
                        break;
                }
        }