]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: bcm2835-audio: Use card->private_data
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:50 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:15:00 +0000 (11:15 +0200)
commitbe2af4715f383d5d9d2741e94076c2c027c5d060
tree96bc9a27a23b2ea42ba9d6ffaa52abc353187cc9
parentd7ca3a71545bae2a802ab64afd7636c2daf26699
staging: bcm2835-audio: Use card->private_data

Instead of allocating a separate snd_device object, let snd_card_new()
allocate the private resource.  This simplifies the code.

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.c