summaryrefslogtreecommitdiffstats
path: root/drivers/misc/eeprom
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-07-18 16:43:15 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 16:55:49 +0200
commit34d0eb50bd7c0c6431a67faf2e00b1316f886d45 (patch)
tree6dd105d6caff2207531566c08d89d0cb390c96b3 /drivers/misc/eeprom
parent579e9a307256e550fe918485b828517ea3c5f2fb (diff)
downloadop-kernel-dev-34d0eb50bd7c0c6431a67faf2e00b1316f886d45.zip
op-kernel-dev-34d0eb50bd7c0c6431a67faf2e00b1316f886d45.tar.gz
misc: Convert to using %pOF instead of full_name
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: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/eeprom')
-rw-r--r--drivers/misc/eeprom/idt_89hpesx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/eeprom/idt_89hpesx.c b/drivers/misc/eeprom/idt_89hpesx.c
index ab0df6a..37312b5 100644
--- a/drivers/misc/eeprom/idt_89hpesx.c
+++ b/drivers/misc/eeprom/idt_89hpesx.c
@@ -1132,8 +1132,8 @@ static void idt_get_ofdata(struct idt_89hpesx_dev *pdev)
for_each_available_child_of_node(node, child) {
ee_id = idt_ee_match_id(child);
if (IS_ERR_OR_NULL(ee_id)) {
- dev_warn(dev, "Skip unsupported child node %s",
- child->full_name);
+ dev_warn(dev, "Skip unsupported child node %pOF",
+ child);
continue;
} else
break;
@@ -1151,8 +1151,8 @@ static void idt_get_ofdata(struct idt_89hpesx_dev *pdev)
/* Get custom EEPROM address from 'reg' attribute */
addr_be = of_get_property(child, "reg", &len);
if (!addr_be || (len < sizeof(*addr_be))) {
- dev_warn(dev, "No reg on %s, use default address %d",
- child->full_name, EEPROM_DEF_ADDR);
+ dev_warn(dev, "No reg on %pOF, use default address %d",
+ child, EEPROM_DEF_ADDR);
pdev->inieecmd = 0;
pdev->eeaddr = EEPROM_DEF_ADDR << 1;
} else {
OpenPOWER on IntegriCloud