Commit 1a549cb6 authored by Ranjith Thangavel's avatar Ranjith Thangavel Committed by Greg Kroah-Hartman

comedi: cb_pcidda: Fix coding style - use BIT macro

BIT macro is used for defining BIT location instead of
shifting operator - coding style issue
Signed-off-by: default avatarRanjith Thangavel <ranjithece24@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ecbbf6d3
...@@ -51,13 +51,13 @@ ...@@ -51,13 +51,13 @@
/* DAC registers */ /* DAC registers */
#define CB_DDA_DA_CTRL_REG 0x00 /* D/A Control Register */ #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_SU BIT(0) /* Simultaneous update */
#define CB_DDA_DA_CTRL_EN (1 << 1) /* Enable specified DAC */ #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_DAC(x) ((x) << 2) /* Specify DAC channel */
#define CB_DDA_DA_CTRL_RANGE2V5 (0 << 6) /* 2.5V range */ #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_RANGE5V (2 << 6) /* 5V range */
#define CB_DDA_DA_CTRL_RANGE10V (3 << 6) /* 10V 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 */ #define DACALIBRATION1 4 /* D/A CALIBRATION REGISTER 1 */
/* write bits */ /* write bits */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment