Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: arm_scmi: Simplify printks with pOF format

Print full device node name with %pOF format, so the code will be a bit
simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Message-Id: <20250912092423.162497-2-krzysztof.kozlowski@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

authored by

Krzysztof Kozlowski and committed by
Sudeep Holla
2f86054c 88d3671b

+9 -11
+6 -7
drivers/firmware/arm_scmi/bus.c
··· 401 401 402 402 static void __scmi_device_destroy(struct scmi_device *scmi_dev) 403 403 { 404 - pr_debug("(%s) Destroying SCMI device '%s' for protocol 0x%x (%s)\n", 405 - of_node_full_name(scmi_dev->dev.parent->of_node), 404 + pr_debug("(%pOF) Destroying SCMI device '%s' for protocol 0x%x (%s)\n", 405 + scmi_dev->dev.parent->of_node, 406 406 dev_name(&scmi_dev->dev), scmi_dev->protocol_id, 407 407 scmi_dev->name); 408 408 ··· 474 474 if (retval) 475 475 goto put_dev; 476 476 477 - pr_debug("(%s) Created SCMI device '%s' for protocol 0x%x (%s)\n", 478 - of_node_full_name(parent->of_node), 479 - dev_name(&scmi_dev->dev), protocol, name); 477 + pr_debug("(%pOF) Created SCMI device '%s' for protocol 0x%x (%s)\n", 478 + parent->of_node, dev_name(&scmi_dev->dev), protocol, name); 480 479 481 480 return scmi_dev; 482 481 put_dev: ··· 492 493 493 494 sdev = __scmi_device_create(np, parent, protocol, name); 494 495 if (!sdev) 495 - pr_err("(%s) Failed to create device for protocol 0x%x (%s)\n", 496 - of_node_full_name(parent->of_node), protocol, name); 496 + pr_err("(%pOF) Failed to create device for protocol 0x%x (%s)\n", 497 + parent->of_node, protocol, name); 497 498 498 499 return sdev; 499 500 }
+3 -4
drivers/firmware/arm_scmi/transports/mailbox.c
··· 127 127 (num_mb == 1 && num_sh != 1) || (num_mb == 3 && num_sh != 2) || 128 128 (num_mb == 4 && num_sh != 2)) { 129 129 dev_warn(cdev, 130 - "Invalid channel descriptor for '%s' - mbs:%d shm:%d\n", 131 - of_node_full_name(np), num_mb, num_sh); 130 + "Invalid channel descriptor for '%pOF' - mbs:%d shm:%d\n", 131 + np, num_mb, num_sh); 132 132 return -EINVAL; 133 133 } 134 134 ··· 140 140 of_parse_phandle(np, "shmem", 1); 141 141 142 142 if (!np_tx || !np_rx || np_tx == np_rx) { 143 - dev_warn(cdev, "Invalid shmem descriptor for '%s'\n", 144 - of_node_full_name(np)); 143 + dev_warn(cdev, "Invalid shmem descriptor for '%pOF'\n", np); 145 144 ret = -EINVAL; 146 145 } 147 146 }