diff options
author | Rob Herring <robh@kernel.org> | 2018-08-28 17:44:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-28 20:07:00 +0200 |
commit | 5d585e1e756838d91144c3173323b96f5aa12874 (patch) | |
tree | c8d88c84d94388eac19c4cc76de8065278b6f2d4 /sound/soc/fsl/fsl_esai.c | |
parent | Merge tag 'v4.19-rc1' into asoc-4.19 (diff) | |
download | linux-5d585e1e756838d91144c3173323b96f5aa12874.tar.xz linux-5d585e1e756838d91144c3173323b96f5aa12874.zip |
ASoC: 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.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_esai.c')
-rw-r--r-- | sound/soc/fsl/fsl_esai.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index c1d1d06783e5..57b484768a58 100644 --- a/sound/soc/fsl/fsl_esai.c +++ b/sound/soc/fsl/fsl_esai.c @@ -807,7 +807,7 @@ static int fsl_esai_probe(struct platform_device *pdev) return -ENOMEM; esai_priv->pdev = pdev; - strncpy(esai_priv->name, np->name, sizeof(esai_priv->name) - 1); + snprintf(esai_priv->name, sizeof(esai_priv->name), "%pOFn", np); /* Get the addresses and IRQ */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |