ALSA: aoa: Use device_type helpers to access the node type
authorRob Herring <robh@kernel.org>
Fri, 16 Nov 2018 22:11:04 +0000 (16:11 -0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Nov 2018 11:20:51 +0000 (12:20 +0100)
commitc12faa2bc56cb1e7a12b49f0b3a935c0c64fd0b4
treea8efac8ba8b39fb014a72b7a8be5d0a76bd7f77f
parent988e30af9a508a40d958a9eec5c47b1c6d36176f
ALSA: aoa: Use device_type helpers to access the node type

Remove directly accessing device_node.type pointer and use the accessors
instead. This will eventually allow removing the type pointer.

Replace the open coded iterating over child nodes with
for_each_child_of_node() while we're here.

Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: alsa-devel@alsa-project.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/fabrics/layout.c
sound/aoa/soundbus/core.c