mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
ALSA: doc: my_chip has no element ioport
chip->ioport is dereferenced in two places, but the struct is
defined as follows:
struct mychip {
struct snd_card *card;
struct pci_dev *pci;
unsigned long port;
int irq;
};
Signed-off-by: Christina Quast <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
3a23fd0415
commit
4b81dad109
1 changed files with 2 additions and 2 deletions
|
|
@ -324,7 +324,7 @@ to details explained in the following section.
|
|||
strcpy(card->driver, "My Chip");
|
||||
strcpy(card->shortname, "My Own Chip 123");
|
||||
sprintf(card->longname, "%s at 0x%lx irq %i",
|
||||
card->shortname, chip->ioport, chip->irq);
|
||||
card->shortname, chip->port, chip->irq);
|
||||
|
||||
/* (5) */
|
||||
.... /* implemented later */
|
||||
|
|
@ -437,7 +437,7 @@ Since each component can be properly freed, the single
|
|||
strcpy(card->driver, "My Chip");
|
||||
strcpy(card->shortname, "My Own Chip 123");
|
||||
sprintf(card->longname, "%s at 0x%lx irq %i",
|
||||
card->shortname, chip->ioport, chip->irq);
|
||||
card->shortname, chip->port, chip->irq);
|
||||
|
||||
The driver field holds the minimal ID string of the chip. This is used
|
||||
by alsa-lib's configurator, so keep it simple but unique. Even the
|
||||
|
|
|
|||
Loading…
Reference in a new issue