staging: bcm2835-audio: Simplify PCM creation helpers
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:56 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:15:00 +0000 (11:15 +0200)
commit8cc64ae7ab6bd3f996652376a413e33842c88912
treec8d175daeb06d425bf549b5227f9413a9275b6f0
parentbec95770a0ece26890d3aa580da979a3b6b78ff0
staging: bcm2835-audio: Simplify PCM creation helpers

All three functions to create PCM objects are fairly resemble, and can
be unified to a single common helper.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
drivers/staging/vc04_services/bcm2835-audio/bcm2835.h