diff options
author | Rob Herring <robh@kernel.org> | 2018-08-28 03:02:33 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-10-04 21:16:01 +0200 |
commit | dc37a25252717aab7efa4802dc1a1430392b145a (patch) | |
tree | d8121794be829c5f452b50e5cfb9932de2b886d2 /drivers/soc/qcom/apr.c | |
parent | firmware: Convert to using %pOFn instead of device_node.name (diff) | |
download | linux-dc37a25252717aab7efa4802dc1a1430392b145a.tar.xz linux-dc37a25252717aab7efa4802dc1a1430392b145a.zip |
soc: Convert to using %pOFn instead of device_node.name
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.
Cc: Li Yang <leoyang.li@nxp.com>
Cc: David Brown <david.brown@linaro.org>
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-soc@vger.kernel.org
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Qiang Zhao <qiang.zhao@nxp.com>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/soc/qcom/apr.c')
-rw-r--r-- | drivers/soc/qcom/apr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c index 57af8a537332..4bda793ba6ae 100644 --- a/drivers/soc/qcom/apr.c +++ b/drivers/soc/qcom/apr.c @@ -219,7 +219,7 @@ static int apr_add_device(struct device *dev, struct device_node *np, adev->domain_id = id->domain_id; adev->version = id->svc_version; if (np) - strncpy(adev->name, np->name, APR_NAME_SIZE); + snprintf(adev->name, APR_NAME_SIZE, "%pOFn", np); else strncpy(adev->name, id->name, APR_NAME_SIZE); |