ALSA: hdspm - Refactor serial number to avoid code duplication
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Wed, 4 Jan 2012 13:31:16 +0000 (14:31 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Jan 2012 15:05:40 +0000 (16:05 +0100)
commit7d53a631ed92abd19d3c948a5daa535e53bd2bff
tree6fec4787872b5f42cb0a73797aac03cb2aad9ce9
parent4fa0e81b83503900be277e6273a79651b375e288
ALSA: hdspm - Refactor serial number to avoid code duplication

The serial number is used multiple times in hdspm.c. Since it belongs
to the card, let's store it in struct hdspm and refer to it whenever
necessary.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdspm.c