Commit 46388e86 authored by Johan Hovold's avatar Johan Hovold

USB: serial: io_ti: drop unnecessary packed attributes

Drop unnecessary packed attributes from structures that don't need it
and use the __packed macro consistently.
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 35aeb1b3
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
struct product_info { struct product_info {
int TiMode; /* Current TI Mode */ int TiMode; /* Current TI Mode */
u8 hardware_type; /* Type of hardware */ u8 hardware_type; /* Type of hardware */
} __attribute__((packed)); } __packed;
/* /*
* Edgeport firmware header * Edgeport firmware header
......
...@@ -141,7 +141,7 @@ struct out_endpoint_desc_block { ...@@ -141,7 +141,7 @@ struct out_endpoint_desc_block {
u8 YBufAddr; u8 YBufAddr;
u8 YByteCount; u8 YByteCount;
u8 BufferSize; u8 BufferSize;
} __attribute__((packed)); };
/* /*
...@@ -159,7 +159,7 @@ struct ump_uart_config { ...@@ -159,7 +159,7 @@ struct ump_uart_config {
char cXoff; /* XOFF character */ char cXoff; /* XOFF character */
u8 bUartMode; /* Will be updated when a user */ u8 bUartMode; /* Will be updated when a user */
/* interface is defined */ /* interface is defined */
} __attribute__((packed)); };
/* /*
...@@ -170,7 +170,7 @@ struct ump_uart_config { ...@@ -170,7 +170,7 @@ struct ump_uart_config {
struct ump_interrupt { struct ump_interrupt {
u8 bICode; /* Interrupt code (interrupt num) */ u8 bICode; /* Interrupt code (interrupt num) */
u8 bIInfo; /* Interrupt information */ u8 bIInfo; /* Interrupt information */
} __attribute__((packed)); };
#define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 6) & 0x01) #define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 6) & 0x01)
......
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