staging: bcm2835-audio: Simplify PCM creation helpers
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:56 +0000 (17:58 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:31 +0000 (00:08 +0100)
commit5c8ccd1603c8ed81e65260c27be87c723dc431dc
treeaf36644871ef263b32e94375bafa30f6033cce3a
parent6258d4a33b57664543d8d36086ae42230447d4f1
staging: bcm2835-audio: Simplify PCM creation helpers

commit 74470ffeb9aed5548654cfca881bf1d7469fe9c4 upstream.

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