Skip to content

Commit c546ca9

Browse files
mripardtiwai
authored andcommitted
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 7b3b302 commit c546ca9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sound/pci/lx6464es/lx_core.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
/* #define RMH_DEBUG 1 */
2626

27+
#include <linux/bitops.h>
2728
#include <linux/module.h>
2829
#include <linux/pci.h>
2930
#include <linux/delay.h>
@@ -966,9 +967,9 @@ int lx_level_peaks(struct lx6464es *chip, int is_capture, int channels,
966967

967968
/* interrupt handling */
968969
#define PCX_IRQ_NONE 0
969-
#define IRQCS_ACTIVE_PCIDB 0x00002000L /* Bit nø 13 */
970-
#define IRQCS_ENABLE_PCIIRQ 0x00000100L /* Bit nø 08 */
971-
#define IRQCS_ENABLE_PCIDB 0x00000200L /* Bit nø 09 */
970+
#define IRQCS_ACTIVE_PCIDB BIT(13)
971+
#define IRQCS_ENABLE_PCIIRQ BIT(8)
972+
#define IRQCS_ENABLE_PCIDB BIT(9)
972973

973974
static u32 lx_interrupt_test_ack(struct lx6464es *chip)
974975
{

0 commit comments

Comments
 (0)