diff options
author | Rob Herring <robh@kernel.org> | 2018-12-05 13:50:48 -0600 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-12-06 10:54:28 +0100 |
commit | 192a7122954001af2504a9abecfc0ad28532a6ee (patch) | |
tree | 8adeedb9898c5b79e25ccb8d292ff732c48fb463 /sound/aoa/soundbus/core.c | |
parent | 917bb90c65da91719d9f2b8b6d8683c49c988553 (diff) |
ALSA: aoa: Remove direct OF name and type accesses
Convert soundbus uevent and sysfs OF node name and device type usage to
use printf specifier and helper functions instead of directly accessing
the name and type pointers. This will allow the eventual removal of the
pointers.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/aoa/soundbus/core.c')
-rw-r--r-- | sound/aoa/soundbus/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/aoa/soundbus/core.c b/sound/aoa/soundbus/core.c index f3076a3f7f2f..065d3a55725e 100644 --- a/sound/aoa/soundbus/core.c +++ b/sound/aoa/soundbus/core.c @@ -74,7 +74,7 @@ static int soundbus_uevent(struct device *dev, struct kobj_uevent_env *env) of = &soundbus_dev->ofdev; /* stuff we want to pass to /sbin/hotplug */ - retval = add_uevent_var(env, "OF_NAME=%s", of->dev.of_node->name); + retval = add_uevent_var(env, "OF_NAME=%pOFn", of->dev.of_node); if (retval) return retval; |