Skip to content

Commit

Permalink
cdc: add header guards
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Rothwell authored and David S. Miller committed Sep 16, 2015
1 parent d5566fd commit b84ee0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions include/linux/usb/cdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* modify it under the terms of the GNU General Public License
* 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>

Expand Down Expand Up @@ -45,3 +47,5 @@ int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
struct usb_interface *intf,
u8 *buffer,
int buflen);

#endif /* __LINUX_USB_CDC_H */
6 changes: 3 additions & 3 deletions include/uapi/linux/usb/cdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* firmware based USB peripherals.
*/

#ifndef __LINUX_USB_CDC_H
#define __LINUX_USB_CDC_H
#ifndef __UAPI_LINUX_USB_CDC_H
#define __UAPI_LINUX_USB_CDC_H

#include <linux/types.h>

Expand Down Expand Up @@ -444,4 +444,4 @@ struct usb_cdc_ncm_ndp_input_size {
#define USB_CDC_NCM_CRC_NOT_APPENDED 0x00
#define USB_CDC_NCM_CRC_APPENDED 0x01

#endif /* __LINUX_USB_CDC_H */
#endif /* __UAPI_LINUX_USB_CDC_H */

0 comments on commit b84ee0d

Please sign in to comment.