staging: comedi: addi_apci_1564: tidy up APCI1564_EEPROM_REG bit defines
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 7 Aug 2015 18:45:07 +0000 (11:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:34:57 +0000 (18:34 -0700)
Use the BIT() macro to define the bits.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1564.c

index ae8446ec213e982aba49a14e6d81e88202cc7577..f1ccfbd4c578ef89fec698df5365f2ad10ffd83e 100644 (file)
  *   0x48 - 0x64  Timer 12-Bit
  */
 #define APCI1564_EEPROM_REG                    0x00
-#define APCI1564_EEPROM_VCC_STATUS             (1 << 8)
+#define APCI1564_EEPROM_VCC_STATUS             BIT(8)
 #define APCI1564_EEPROM_TO_REV(x)              (((x) >> 4) & 0xf)
-#define APCI1564_EEPROM_DI                     (1 << 3)
-#define APCI1564_EEPROM_DO                     (1 << 2)
-#define APCI1564_EEPROM_CS                     (1 << 1)
-#define APCI1564_EEPROM_CLK                    (1 << 0)
+#define APCI1564_EEPROM_DI                     BIT(3)
+#define APCI1564_EEPROM_DO                     BIT(2)
+#define APCI1564_EEPROM_CS                     BIT(1)
+#define APCI1564_EEPROM_CLK                    BIT(0)
 #define APCI1564_REV1_TIMER_IOBASE             0x04
 #define APCI1564_REV2_MAIN_IOBASE              0x04
 #define APCI1564_REV2_TIMER_IOBASE             0x48