提交 e55fe64a 编写于 作者: R Rob Herring 提交者: Greg Kroah-Hartman

spmi: 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: NRob Herring <robh@kernel.org>
Reviewed-by: NStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 53d296b5
...@@ -466,27 +466,25 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl) ...@@ -466,27 +466,25 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl)
struct spmi_device *sdev; struct spmi_device *sdev;
u32 reg[2]; u32 reg[2];
dev_dbg(&ctrl->dev, "adding child %s\n", node->full_name); dev_dbg(&ctrl->dev, "adding child %pOF\n", node);
err = of_property_read_u32_array(node, "reg", reg, 2); err = of_property_read_u32_array(node, "reg", reg, 2);
if (err) { if (err) {
dev_err(&ctrl->dev, dev_err(&ctrl->dev,
"node %s err (%d) does not have 'reg' property\n", "node %pOF err (%d) does not have 'reg' property\n",
node->full_name, err); node, err);
continue; continue;
} }
if (reg[1] != SPMI_USID) { if (reg[1] != SPMI_USID) {
dev_err(&ctrl->dev, dev_err(&ctrl->dev,
"node %s contains unsupported 'reg' entry\n", "node %pOF contains unsupported 'reg' entry\n",
node->full_name); node);
continue; continue;
} }
if (reg[0] >= SPMI_MAX_SLAVE_ID) { if (reg[0] >= SPMI_MAX_SLAVE_ID) {
dev_err(&ctrl->dev, dev_err(&ctrl->dev, "invalid usid on node %pOF\n", node);
"invalid usid on node %s\n",
node->full_name);
continue; continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册