diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-12-14 22:19:36 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-19 04:34:41 -0500 |
commit | a67ff6a54095e27093ea501fb143fefe51a536c2 (patch) | |
tree | 48cb687a7569a8b6d4051bc9051f565b43803982 /sound/oss | |
parent | 1bba160a0777046967707bbcdc9fb09d334ab2e5 (diff) |
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')
-rw-r--r-- | sound/oss/ad1848.c | 8 | ||||
-rw-r--r-- | sound/oss/msnd_pinnacle.c | 2 | ||||
-rw-r--r-- | sound/oss/pas2_card.c | 12 | ||||
-rw-r--r-- | sound/oss/pss.c | 10 | ||||
-rw-r--r-- | sound/oss/trix.c | 2 |
5 files changed, 17 insertions, 17 deletions
diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c index 8a197fd3c57e..98d23bdcaf21 100644 --- a/sound/oss/ad1848.c +++ b/sound/oss/ad1848.c | |||
@@ -119,9 +119,9 @@ ad1848_port_info; | |||
119 | static struct address_info cfg; | 119 | static struct address_info cfg; |
120 | static int nr_ad1848_devs; | 120 | static int nr_ad1848_devs; |
121 | 121 | ||
122 | static int deskpro_xl; | 122 | static bool deskpro_xl; |
123 | static int deskpro_m; | 123 | static bool deskpro_m; |
124 | static int soundpro; | 124 | static bool soundpro; |
125 | 125 | ||
126 | static volatile signed char irq2dev[17] = { | 126 | static volatile signed char irq2dev[17] = { |
127 | -1, -1, -1, -1, -1, -1, -1, -1, | 127 | -1, -1, -1, -1, -1, -1, -1, -1, |
@@ -177,7 +177,7 @@ static struct { | |||
177 | #ifdef CONFIG_PNP | 177 | #ifdef CONFIG_PNP |
178 | static int isapnp = 1; | 178 | static int isapnp = 1; |
179 | static int isapnpjump; | 179 | static int isapnpjump; |
180 | static int reverse; | 180 | static bool reverse; |
181 | 181 | ||
182 | static int audio_activated; | 182 | static int audio_activated; |
183 | #else | 183 | #else |
diff --git a/sound/oss/msnd_pinnacle.c b/sound/oss/msnd_pinnacle.c index 7b5c77b32a90..eba734560f6f 100644 --- a/sound/oss/msnd_pinnacle.c +++ b/sound/oss/msnd_pinnacle.c | |||
@@ -1701,7 +1701,7 @@ static int joystick_io __initdata = CONFIG_MSNDPIN_JOYSTICK_IO; | |||
1701 | #ifndef CONFIG_MSNDPIN_DIGITAL | 1701 | #ifndef CONFIG_MSNDPIN_DIGITAL |
1702 | # define CONFIG_MSNDPIN_DIGITAL 0 | 1702 | # define CONFIG_MSNDPIN_DIGITAL 0 |
1703 | #endif | 1703 | #endif |
1704 | static int digital __initdata = CONFIG_MSNDPIN_DIGITAL; | 1704 | static bool digital __initdata = CONFIG_MSNDPIN_DIGITAL; |
1705 | 1705 | ||
1706 | #endif /* MSND_CLASSIC */ | 1706 | #endif /* MSND_CLASSIC */ |
1707 | 1707 | ||
diff --git a/sound/oss/pas2_card.c b/sound/oss/pas2_card.c index 7f377ec3486d..dabf8a871dcc 100644 --- a/sound/oss/pas2_card.c +++ b/sound/oss/pas2_card.c | |||
@@ -41,19 +41,19 @@ static int pas_irq; | |||
41 | static int pas_sb_base; | 41 | static int pas_sb_base; |
42 | DEFINE_SPINLOCK(pas_lock); | 42 | DEFINE_SPINLOCK(pas_lock); |
43 | #ifndef CONFIG_PAS_JOYSTICK | 43 | #ifndef CONFIG_PAS_JOYSTICK |
44 | static int joystick; | 44 | static bool joystick; |
45 | #else | 45 | #else |
46 | static int joystick = 1; | 46 | static bool joystick = 1; |
47 | #endif | 47 | #endif |
48 | #ifdef SYMPHONY_PAS | 48 | #ifdef SYMPHONY_PAS |
49 | static int symphony = 1; | 49 | static bool symphony = 1; |
50 | #else | 50 | #else |
51 | static int symphony; | 51 | static bool symphony; |
52 | #endif | 52 | #endif |
53 | #ifdef BROKEN_BUS_CLOCK | 53 | #ifdef BROKEN_BUS_CLOCK |
54 | static int broken_bus_clock = 1; | 54 | static bool broken_bus_clock = 1; |
55 | #else | 55 | #else |
56 | static int broken_bus_clock; | 56 | static bool broken_bus_clock; |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | static struct address_info cfg; | 59 | static struct address_info cfg; |
diff --git a/sound/oss/pss.c b/sound/oss/pss.c index 2fc0624024b5..0f32a561f15f 100644 --- a/sound/oss/pss.c +++ b/sound/oss/pss.c | |||
@@ -117,9 +117,9 @@ | |||
117 | 117 | ||
118 | /* If compiled into kernel, it enable or disable pss mixer */ | 118 | /* If compiled into kernel, it enable or disable pss mixer */ |
119 | #ifdef CONFIG_PSS_MIXER | 119 | #ifdef CONFIG_PSS_MIXER |
120 | static int pss_mixer = 1; | 120 | static bool pss_mixer = 1; |
121 | #else | 121 | #else |
122 | static int pss_mixer; | 122 | static bool pss_mixer; |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | 125 | ||
@@ -147,7 +147,7 @@ static DEFINE_SPINLOCK(lock); | |||
147 | static int pss_initialized; | 147 | static int pss_initialized; |
148 | static int nonstandard_microcode; | 148 | static int nonstandard_microcode; |
149 | static int pss_cdrom_port = -1; /* Parameter for the PSS cdrom port */ | 149 | static int pss_cdrom_port = -1; /* Parameter for the PSS cdrom port */ |
150 | static int pss_enable_joystick; /* Parameter for enabling the joystick */ | 150 | static bool pss_enable_joystick; /* Parameter for enabling the joystick */ |
151 | static coproc_operations pss_coproc_operations; | 151 | static coproc_operations pss_coproc_operations; |
152 | 152 | ||
153 | static void pss_write(pss_confdata *devc, int data) | 153 | static void pss_write(pss_confdata *devc, int data) |
@@ -1133,8 +1133,8 @@ static int mss_irq __initdata = -1; | |||
1133 | static int mss_dma __initdata = -1; | 1133 | static int mss_dma __initdata = -1; |
1134 | static int mpu_io __initdata = -1; | 1134 | static int mpu_io __initdata = -1; |
1135 | static int mpu_irq __initdata = -1; | 1135 | static int mpu_irq __initdata = -1; |
1136 | static int pss_no_sound = 0; /* Just configure non-sound components */ | 1136 | static bool pss_no_sound = 0; /* Just configure non-sound components */ |
1137 | static int pss_keep_settings = 1; /* Keep hardware settings at module exit */ | 1137 | static bool pss_keep_settings = 1; /* Keep hardware settings at module exit */ |
1138 | static char *pss_firmware = "/etc/sound/pss_synth"; | 1138 | static char *pss_firmware = "/etc/sound/pss_synth"; |
1139 | 1139 | ||
1140 | module_param(pss_io, int, 0); | 1140 | module_param(pss_io, int, 0); |
diff --git a/sound/oss/trix.c b/sound/oss/trix.c index e04169e8e3f8..944e0c015485 100644 --- a/sound/oss/trix.c +++ b/sound/oss/trix.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | static int mpu; | 32 | static int mpu; |
33 | 33 | ||
34 | static int joystick; | 34 | static bool joystick; |
35 | 35 | ||
36 | static unsigned char trix_read(int addr) | 36 | static unsigned char trix_read(int addr) |
37 | { | 37 | { |