ALSA: module_param: make bool parameters really bool

module_param(bool) used to counter-intuitively take an int.  In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.

It's time to remove the int/unsigned int option.  For this version
it'll simply give a warning, but it'll break next kernel version.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Šī revīzija ir iekļauta:
Rusty Russell
2011-12-15 13:49:36 +10:30
revīziju iesūtīja Takashi Iwai
vecāks 1bba160a07
revīzija a67ff6a540
109 mainīti faili ar 172 papildinājumiem un 172 dzēšanām

Parādīt failu

@@ -57,12 +57,12 @@ static int index = SNDRV_DEFAULT_IDX1; /* Index */
static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */
static int playback_bufsize = 16;
static int capture_bufsize = 16;
static int force_ac97; /* disabled as default */
static bool force_ac97; /* disabled as default */
static int buffer_top; /* not specified */
static int use_cache; /* disabled */
static int vaio_hack; /* disabled */
static int reset_workaround;
static int reset_workaround_2;
static bool use_cache; /* disabled */
static bool vaio_hack; /* disabled */
static bool reset_workaround;
static bool reset_workaround_2;
module_param(index, int, 0444);
MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard.");
@@ -86,7 +86,7 @@ module_param(reset_workaround_2, bool, 0444);
MODULE_PARM_DESC(reset_workaround_2, "Enable extended AC97 RESET workaround for some other laptops.");
/* just for backward compatibility */
static int enable;
static bool enable;
module_param(enable, bool, 0444);