Skip to content

Commit

Permalink
can: peak_usb: pcan_usb_pro.h: remove double space in indention
Browse files Browse the repository at this point in the history
This patch replaces the double space indention after the u8 with a
single space in pcan_usb_pro.h.

Link: https://lore.kernel.org/r/20210406111622.1874957-3-mkl@pengutronix.de
Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Tested-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Apr 13, 2021
1 parent bc256b9 commit fa34e0a
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions drivers/net/can/usb/peak_usb/pcan_usb_pro.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
/* PCAN_USBPRO_INFO_BL vendor request record type */
struct __packed pcan_usb_pro_blinfo {
__le32 ctrl_type;
u8 version[4];
u8 day;
u8 month;
u8 year;
u8 dummy;
u8 version[4];
u8 day;
u8 month;
u8 year;
u8 dummy;
__le32 serial_num_hi;
__le32 serial_num_lo;
__le32 hw_type;
Expand All @@ -48,11 +48,11 @@ struct __packed pcan_usb_pro_blinfo {
/* PCAN_USBPRO_INFO_FW vendor request record type */
struct __packed pcan_usb_pro_fwinfo {
__le32 ctrl_type;
u8 version[4];
u8 day;
u8 month;
u8 year;
u8 dummy;
u8 version[4];
u8 day;
u8 month;
u8 year;
u8 dummy;
__le32 fw_type;
};

Expand All @@ -78,39 +78,39 @@ struct __packed pcan_usb_pro_fwinfo {

/* record structures */
struct __packed pcan_usb_pro_btr {
u8 data_type;
u8 channel;
u8 data_type;
u8 channel;
__le16 dummy;
__le32 CCBT;
};

struct __packed pcan_usb_pro_busact {
u8 data_type;
u8 channel;
u8 data_type;
u8 channel;
__le16 onoff;
};

struct __packed pcan_usb_pro_silent {
u8 data_type;
u8 channel;
u8 data_type;
u8 channel;
__le16 onoff;
};

struct __packed pcan_usb_pro_filter {
u8 data_type;
u8 dummy;
u8 data_type;
u8 dummy;
__le16 filter_mode;
};

struct __packed pcan_usb_pro_setts {
u8 data_type;
u8 dummy;
u8 data_type;
u8 dummy;
__le16 mode;
};

struct __packed pcan_usb_pro_devid {
u8 data_type;
u8 channel;
u8 data_type;
u8 channel;
__le16 dummy;
__le32 serial_num;
};
Expand All @@ -122,21 +122,21 @@ struct __packed pcan_usb_pro_devid {
#define PCAN_USBPRO_LED_OFF 0x04

struct __packed pcan_usb_pro_setled {
u8 data_type;
u8 channel;
u8 data_type;
u8 channel;
__le16 mode;
__le32 timeout;
};

struct __packed pcan_usb_pro_rxmsg {
u8 data_type;
u8 client;
u8 flags;
u8 len;
u8 data_type;
u8 client;
u8 flags;
u8 len;
__le32 ts32;
__le32 id;

u8 data[8];
u8 data[8];
};

#define PCAN_USBPRO_STATUS_ERROR 0x0001
Expand All @@ -145,26 +145,26 @@ struct __packed pcan_usb_pro_rxmsg {
#define PCAN_USBPRO_STATUS_QOVERRUN 0x0008

struct __packed pcan_usb_pro_rxstatus {
u8 data_type;
u8 channel;
u8 data_type;
u8 channel;
__le16 status;
__le32 ts32;
__le32 err_frm;
};

struct __packed pcan_usb_pro_rxts {
u8 data_type;
u8 dummy[3];
u8 data_type;
u8 dummy[3];
__le32 ts64[2];
};

struct __packed pcan_usb_pro_txmsg {
u8 data_type;
u8 client;
u8 flags;
u8 len;
u8 data_type;
u8 client;
u8 flags;
u8 len;
__le32 id;
u8 data[8];
u8 data[8];
};

union pcan_usb_pro_rec {
Expand Down

0 comments on commit fa34e0a

Please sign in to comment.