소스 검색

USB: cdc-acm: use BIT macro

Converting the header to BIT for readability. No functional
change.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Oliver Neukum 11 년 전
부모
커밋
d1b781002b
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      drivers/usb/class/cdc-acm.h

+ 6 - 6
drivers/usb/class/cdc-acm.h

@@ -126,9 +126,9 @@ struct acm {
 #define CDC_DATA_INTERFACE_TYPE	0x0a
 #define CDC_DATA_INTERFACE_TYPE	0x0a
 
 
 /* constants describing various quirks and errors */
 /* constants describing various quirks and errors */
-#define NO_UNION_NORMAL			1
-#define SINGLE_RX_URB			2
-#define NO_CAP_LINE			4
-#define NOT_A_MODEM			8
-#define NO_DATA_INTERFACE		16
-#define IGNORE_DEVICE			32
+#define NO_UNION_NORMAL			BIT(0)
+#define SINGLE_RX_URB			BIT(1)
+#define NO_CAP_LINE			BIT(2)
+#define NOT_A_MODEM			BIT(3)
+#define NO_DATA_INTERFACE		BIT(4)
+#define IGNORE_DEVICE			BIT(5)