mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
staging: comedi: multiq3: tidy up status register bit defines
For aesthetics, move these defines closer to the register define and use the BIT macro to define the bits. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
889031c7d8
commit
2f8d129ed9
1 changed files with 2 additions and 6 deletions
|
|
@ -47,6 +47,8 @@
|
|||
#define MULTIQ3_AI_REG 0x04
|
||||
#define MULTIQ3_AI_CONV_REG 0x04
|
||||
#define MULTIQ3_STATUS_REG 0x06
|
||||
#define MULTIQ3_STATUS_EOC BIT(3)
|
||||
#define MULTIQ3_STATUS_EOC_I BIT(4)
|
||||
#define MULTIQ3_CTRL_REG 0x06
|
||||
#define MULTIQ3_CLK_REG 0x08
|
||||
#define MULTIQ3_ENC_DATA_REG 0x0c
|
||||
|
|
@ -64,12 +66,6 @@
|
|||
|
||||
#define MULTIQ3_CONTROL_MUST 0x0600
|
||||
|
||||
/*
|
||||
* flags for STATUS register
|
||||
*/
|
||||
#define MULTIQ3_STATUS_EOC 0x008
|
||||
#define MULTIQ3_STATUS_EOC_I 0x010
|
||||
|
||||
/*
|
||||
* flags for encoder control
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue