diff options
author | Christina Quast <cquast@hanoverdisplays.com> | 2019-04-02 14:16:48 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-04-03 11:55:47 +0200 |
commit | 4b81dad109ad7d7b288804fcdc6475b48f242210 (patch) | |
tree | c48da652e458b49814c8305f799c801496f67e52 /Documentation/sound | |
parent | 3a23fd0415cbd074b726fe730747d1bb41f8d0d7 (diff) | |
download | linux-4b81dad109ad7d7b288804fcdc6475b48f242210.tar.gz linux-4b81dad109ad7d7b288804fcdc6475b48f242210.tar.bz2 linux-4b81dad109ad7d7b288804fcdc6475b48f242210.zip |
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 <cquast@hanoverdisplays.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/sound')
-rw-r--r-- | Documentation/sound/kernel-api/writing-an-alsa-driver.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst index 6b154dbb02cc..132f5eb9b530 100644 --- a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst +++ b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst @@ -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 |