Commit dcfd3494 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_3xxx: prefer using the BIT macro

As suggested by checkpatch.pl, use the BIT macro to define the
register bits.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6ed30c89
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
#include "../comedi_pci.h" #include "../comedi_pci.h"
#define CONV_UNIT_NS (1 << 0) #define CONV_UNIT_NS BIT(0)
#define CONV_UNIT_US (1 << 1) #define CONV_UNIT_US BIT(1)
#define CONV_UNIT_MS (1 << 2) #define CONV_UNIT_MS BIT(2)
static const struct comedi_lrange apci3xxx_ai_range = { static const struct comedi_lrange apci3xxx_ai_range = {
8, { 8, {
......
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