comedi: cb_pcidda: Fix coding style - use BIT macro
authorRanjith Thangavel <ranjithece24@gmail.com>
Wed, 11 Nov 2015 16:27:51 +0000 (21:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 23:55:57 +0000 (15:55 -0800)
BIT macro is used for defining BIT location instead of
shifting operator - coding style issue

Signed-off-by: Ranjith Thangavel <ranjithece24@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidda.c

index b00a36a5cb360e101a5ff5c13f7cf0fba492aef3..ccb37d1f0f8eeddc9e8495711da1c220e5c465ec 100644 (file)
 
 /* DAC registers */
 #define CB_DDA_DA_CTRL_REG             0x00       /* D/A Control Register  */
-#define CB_DDA_DA_CTRL_SU              (1 << 0)   /*  Simultaneous update  */
-#define CB_DDA_DA_CTRL_EN              (1 << 1)   /*  Enable specified DAC */
+#define CB_DDA_DA_CTRL_SU              BIT(0)   /*  Simultaneous update  */
+#define CB_DDA_DA_CTRL_EN              BIT(1)   /*  Enable specified DAC */
 #define CB_DDA_DA_CTRL_DAC(x)          ((x) << 2) /*  Specify DAC channel  */
 #define CB_DDA_DA_CTRL_RANGE2V5                (0 << 6)   /*  2.5V range           */
 #define CB_DDA_DA_CTRL_RANGE5V         (2 << 6)   /*  5V range             */
 #define CB_DDA_DA_CTRL_RANGE10V                (3 << 6)   /*  10V range            */
-#define CB_DDA_DA_CTRL_UNIP            (1 << 8)   /*  Unipolar range       */
+#define CB_DDA_DA_CTRL_UNIP            BIT(8)   /*  Unipolar range       */
 
 #define DACALIBRATION1 4       /*  D/A CALIBRATION REGISTER 1 */
 /* write bits */
This page took 0.026797 seconds and 5 git commands to generate.