提交 b84ee0d7 编写于 作者: S Stephen Rothwell 提交者: David S. Miller

cdc: add header guards

Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d5566fd7
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation. * version 2 as published by the Free Software Foundation.
*/ */
#ifndef __LINUX_USB_CDC_H
#define __LINUX_USB_CDC_H
#include <uapi/linux/usb/cdc.h> #include <uapi/linux/usb/cdc.h>
...@@ -45,3 +47,5 @@ int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr, ...@@ -45,3 +47,5 @@ int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
struct usb_interface *intf, struct usb_interface *intf,
u8 *buffer, u8 *buffer,
int buflen); int buflen);
#endif /* __LINUX_USB_CDC_H */
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
* firmware based USB peripherals. * firmware based USB peripherals.
*/ */
#ifndef __LINUX_USB_CDC_H #ifndef __UAPI_LINUX_USB_CDC_H
#define __LINUX_USB_CDC_H #define __UAPI_LINUX_USB_CDC_H
#include <linux/types.h> #include <linux/types.h>
...@@ -444,4 +444,4 @@ struct usb_cdc_ncm_ndp_input_size { ...@@ -444,4 +444,4 @@ struct usb_cdc_ncm_ndp_input_size {
#define USB_CDC_NCM_CRC_NOT_APPENDED 0x00 #define USB_CDC_NCM_CRC_NOT_APPENDED 0x00
#define USB_CDC_NCM_CRC_APPENDED 0x01 #define USB_CDC_NCM_CRC_APPENDED 0x01
#endif /* __LINUX_USB_CDC_H */ #endif /* __UAPI_LINUX_USB_CDC_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册