diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-12-15 13:49:36 +1030 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-19 10:34:41 +0100 |
commit | a67ff6a54095e27093ea501fb143fefe51a536c2 (patch) | |
tree | 48cb687a7569a8b6d4051bc9051f565b43803982 /sound/oss/pss.c | |
parent | 1bba160a0777046967707bbcdc9fb09d334ab2e5 (diff) | |
download | linux-3.10-a67ff6a54095e27093ea501fb143fefe51a536c2.tar.gz linux-3.10-a67ff6a54095e27093ea501fb143fefe51a536c2.tar.bz2 linux-3.10-a67ff6a54095e27093ea501fb143fefe51a536c2.zip |
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>
Diffstat (limited to 'sound/oss/pss.c')
-rw-r--r-- | sound/oss/pss.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/oss/pss.c b/sound/oss/pss.c index 2fc0624024b..0f32a561f15 100644 --- a/sound/oss/pss.c +++ b/sound/oss/pss.c @@ -117,9 +117,9 @@ /* If compiled into kernel, it enable or disable pss mixer */ #ifdef CONFIG_PSS_MIXER -static int pss_mixer = 1; +static bool pss_mixer = 1; #else -static int pss_mixer; +static bool pss_mixer; #endif @@ -147,7 +147,7 @@ static DEFINE_SPINLOCK(lock); static int pss_initialized; static int nonstandard_microcode; static int pss_cdrom_port = -1; /* Parameter for the PSS cdrom port */ -static int pss_enable_joystick; /* Parameter for enabling the joystick */ +static bool pss_enable_joystick; /* Parameter for enabling the joystick */ static coproc_operations pss_coproc_operations; static void pss_write(pss_confdata *devc, int data) @@ -1133,8 +1133,8 @@ static int mss_irq __initdata = -1; static int mss_dma __initdata = -1; static int mpu_io __initdata = -1; static int mpu_irq __initdata = -1; -static int pss_no_sound = 0; /* Just configure non-sound components */ -static int pss_keep_settings = 1; /* Keep hardware settings at module exit */ +static bool pss_no_sound = 0; /* Just configure non-sound components */ +static bool pss_keep_settings = 1; /* Keep hardware settings at module exit */ static char *pss_firmware = "/etc/sound/pss_synth"; module_param(pss_io, int, 0); |