提交 b2fac073 编写于 作者: F Fabian Frederick 提交者: Takashi Iwai

ALSA: pci: don't opencode IS_REACHABLE()

Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 658355b5
...@@ -84,7 +84,7 @@ MODULE_DESCRIPTION("Avance Logic ALS4000"); ...@@ -84,7 +84,7 @@ MODULE_DESCRIPTION("Avance Logic ALS4000");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("{{Avance Logic,ALS4000}}"); MODULE_SUPPORTED_DEVICE("{{Avance Logic,ALS4000}}");
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK 1 #define SUPPORT_JOYSTICK 1
#endif #endif
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include <linux/gameport.h> #include <linux/gameport.h>
#include <linux/export.h> #include <linux/export.h>
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define VORTEX_GAME_DWAIT 20 /* 20 ms */ #define VORTEX_GAME_DWAIT 20 /* 20 ms */
......
...@@ -212,7 +212,7 @@ MODULE_DESCRIPTION("Aztech AZF3328 (PCI168)"); ...@@ -212,7 +212,7 @@ MODULE_DESCRIPTION("Aztech AZF3328 (PCI168)");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("{{Aztech,AZF3328}}"); MODULE_SUPPORTED_DEVICE("{{Aztech,AZF3328}}");
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_GAMEPORT 1 #define SUPPORT_GAMEPORT 1
#endif #endif
......
...@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI8738}," ...@@ -48,7 +48,7 @@ MODULE_SUPPORTED_DEVICE("{{C-Media,CMI8738},"
"{C-Media,CMI8338A}," "{C-Media,CMI8338A},"
"{C-Media,CMI8338B}}"); "{C-Media,CMI8338B}}");
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK 1 #define SUPPORT_JOYSTICK 1
#endif #endif
......
...@@ -1194,7 +1194,7 @@ static void snd_cs4281_proc_init(struct cs4281 *chip) ...@@ -1194,7 +1194,7 @@ static void snd_cs4281_proc_init(struct cs4281 *chip)
* joystick support * joystick support
*/ */
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
static void snd_cs4281_gameport_trigger(struct gameport *gameport) static void snd_cs4281_gameport_trigger(struct gameport *gameport)
{ {
......
...@@ -2718,7 +2718,7 @@ int snd_cs46xx_midi(struct snd_cs46xx *chip, int device) ...@@ -2718,7 +2718,7 @@ int snd_cs46xx_midi(struct snd_cs46xx *chip, int device)
* gameport interface * gameport interface
*/ */
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
static void snd_cs46xx_gameport_trigger(struct gameport *gameport) static void snd_cs46xx_gameport_trigger(struct gameport *gameport)
{ {
......
...@@ -37,7 +37,7 @@ MODULE_LICENSE("GPL"); ...@@ -37,7 +37,7 @@ MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("{{Creative Labs,SB Live!/PCI512/E-mu APS}," MODULE_SUPPORTED_DEVICE("{{Creative Labs,SB Live!/PCI512/E-mu APS},"
"{Creative Labs,SB Audigy}}"); "{Creative Labs,SB Audigy}}");
#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE)) #if IS_REACHABLE(CONFIG_SND_SEQUENCER)
#define ENABLE_SYNTH #define ENABLE_SYNTH
#include <sound/emu10k1_synth.h> #include <sound/emu10k1_synth.h>
#endif #endif
......
...@@ -79,7 +79,7 @@ MODULE_SUPPORTED_DEVICE("{{Ensoniq,AudioPCI ES1371/73}," ...@@ -79,7 +79,7 @@ MODULE_SUPPORTED_DEVICE("{{Ensoniq,AudioPCI ES1371/73},"
"{Ectiva,EV1938}}"); "{Ectiva,EV1938}}");
#endif #endif
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK #define SUPPORT_JOYSTICK
#endif #endif
......
...@@ -72,7 +72,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,ES1938}," ...@@ -72,7 +72,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,ES1938},"
"{ESS,ES1969}," "{ESS,ES1969},"
"{TerraTec,128i PCI}}"); "{TerraTec,128i PCI}}");
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK 1 #define SUPPORT_JOYSTICK 1
#endif #endif
......
...@@ -126,7 +126,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,Maestro 2e}," ...@@ -126,7 +126,7 @@ MODULE_SUPPORTED_DEVICE("{{ESS,Maestro 2e},"
"{ESS,Maestro 1}," "{ESS,Maestro 1},"
"{TerraTec,DMX}}"); "{TerraTec,DMX}}");
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK 1 #define SUPPORT_JOYSTICK 1
#endif #endif
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
#include <sound/opl3.h> #include <sound/opl3.h>
#include <sound/initval.h> #include <sound/initval.h>
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK 1 #define SUPPORT_JOYSTICK 1
#endif #endif
......
...@@ -45,7 +45,7 @@ MODULE_DESCRIPTION("S3 SonicVibes PCI"); ...@@ -45,7 +45,7 @@ MODULE_DESCRIPTION("S3 SonicVibes PCI");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("{{S3,SonicVibes PCI}}"); MODULE_SUPPORTED_DEVICE("{{S3,SonicVibes PCI}}");
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK 1 #define SUPPORT_JOYSTICK 1
#endif #endif
......
...@@ -3120,7 +3120,7 @@ static int snd_trident_mixer(struct snd_trident *trident, int pcm_spdif_device) ...@@ -3120,7 +3120,7 @@ static int snd_trident_mixer(struct snd_trident *trident, int pcm_spdif_device)
* gameport interface * gameport interface
*/ */
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
static unsigned char snd_trident_gameport_read(struct gameport *gameport) static unsigned char snd_trident_gameport_read(struct gameport *gameport)
{ {
......
...@@ -72,7 +72,7 @@ MODULE_DESCRIPTION("VIA VT82xx audio"); ...@@ -72,7 +72,7 @@ MODULE_DESCRIPTION("VIA VT82xx audio");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("{{VIA,VT82C686A/B/C,pci},{VIA,VT8233A/C,8235}}"); MODULE_SUPPORTED_DEVICE("{{VIA,VT82C686A/B/C,pci},{VIA,VT8233A/C,8235}}");
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK 1 #define SUPPORT_JOYSTICK 1
#endif #endif
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
#define YMFPCI_LEGACY2_IMOD (1 << 15) /* legacy IRQ mode */ #define YMFPCI_LEGACY2_IMOD (1 << 15) /* legacy IRQ mode */
/* SIEN:IMOD 0:0 = legacy irq, 0:1 = INTA, 1:0 = serialized IRQ */ /* SIEN:IMOD 0:0 = legacy irq, 0:1 = INTA, 1:0 = serialized IRQ */
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) #if IS_REACHABLE(CONFIG_GAMEPORT)
#define SUPPORT_JOYSTICK #define SUPPORT_JOYSTICK
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册