diff options
author | Jaroslav Kysela <perex@suse.cz> | 2004-11-11 13:42:23 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2004-11-11 13:42:23 +0100 |
commit | 1148e9ae3618a4ce907cba6b5e727f32b50ee995 (patch) | |
tree | b41e71e0dc767bdc78e356e6c3f376c5edfefab8 /Documentation | |
parent | 42cd970696c7b033076626ee7c11a46b8c08a8ed (diff) | |
download | history-1148e9ae3618a4ce907cba6b5e727f32b50ee995.tar.gz |
[ALSA] Fixed the description of module_parm_array()
Documentation
Fixed the description about module_param_array() for the latest change.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl index d08c20d8634a33..0f6e7baa7e5277 100644 --- a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl +++ b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl @@ -5314,19 +5314,15 @@ struct _snd_pcm_runtime { <![CDATA[ #define CARD_NAME "My Chip" - static int boot_devs; - module_param_array(index, int, boot_devs, 0444); + module_param_array(index, int, NULL, 0444); MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); - module_param_array(id, charp, boot_devs, 0444); + module_param_array(id, charp, NULL, 0444); MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard."); - module_param_array(enable, bool, boot_devs, 0444); + module_param_array(enable, bool, NULL, 0444); MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard."); ]]> </programlisting> </informalexample> - - Here boot_devs is passed but simply ignored since we don't care - the number of parsed parameters. </para> <para> |