diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-04-17 05:51:17 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-04-18 03:55:42 -0400 |
commit | c546ca95f58b53839e9eb9dbdf25b369605e5077 (patch) | |
tree | 7f30fd10ce536df27f0c9b8dc759cbcd21e35ee2 | |
parent | 7b3b302615c3ab9c111d0238107d741146dda701 (diff) |
ALSA: lx_core: Switch to using BIT macro
Move to using the BIT macro for a few defines. It also allows to discard the
french comment that was saying exactly what the BIT macro is now pointing out.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/lx6464es/lx_core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/lx6464es/lx_core.c b/sound/pci/lx6464es/lx_core.c index 6a1d90a308ea..652f6dfc7e1a 100644 --- a/sound/pci/lx6464es/lx_core.c +++ b/sound/pci/lx6464es/lx_core.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | /* #define RMH_DEBUG 1 */ | 25 | /* #define RMH_DEBUG 1 */ |
26 | 26 | ||
27 | #include <linux/bitops.h> | ||
27 | #include <linux/module.h> | 28 | #include <linux/module.h> |
28 | #include <linux/pci.h> | 29 | #include <linux/pci.h> |
29 | #include <linux/delay.h> | 30 | #include <linux/delay.h> |
@@ -966,9 +967,9 @@ int lx_level_peaks(struct lx6464es *chip, int is_capture, int channels, | |||
966 | 967 | ||
967 | /* interrupt handling */ | 968 | /* interrupt handling */ |
968 | #define PCX_IRQ_NONE 0 | 969 | #define PCX_IRQ_NONE 0 |
969 | #define IRQCS_ACTIVE_PCIDB 0x00002000L /* Bit nø 13 */ | 970 | #define IRQCS_ACTIVE_PCIDB BIT(13) |
970 | #define IRQCS_ENABLE_PCIIRQ 0x00000100L /* Bit nø 08 */ | 971 | #define IRQCS_ENABLE_PCIIRQ BIT(8) |
971 | #define IRQCS_ENABLE_PCIDB 0x00000200L /* Bit nø 09 */ | 972 | #define IRQCS_ENABLE_PCIDB BIT(9) |
972 | 973 | ||
973 | static u32 lx_interrupt_test_ack(struct lx6464es *chip) | 974 | static u32 lx_interrupt_test_ack(struct lx6464es *chip) |
974 | { | 975 | { |