Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>

+4 -4
+1 -1
drivers/usb/serial/io_ti.c
··· 65 65 struct product_info { 66 66 int TiMode; /* Current TI Mode */ 67 67 u8 hardware_type; /* Type of hardware */ 68 - } __attribute__((packed)); 68 + } __packed; 69 69 70 70 /* 71 71 * Edgeport firmware header
+3 -3
drivers/usb/serial/io_ti.h
··· 141 141 u8 YBufAddr; 142 142 u8 YByteCount; 143 143 u8 BufferSize; 144 - } __attribute__((packed)); 144 + }; 145 145 146 146 147 147 /* ··· 159 159 char cXoff; /* XOFF character */ 160 160 u8 bUartMode; /* Will be updated when a user */ 161 161 /* interface is defined */ 162 - } __attribute__((packed)); 162 + }; 163 163 164 164 165 165 /* ··· 170 170 struct ump_interrupt { 171 171 u8 bICode; /* Interrupt code (interrupt num) */ 172 172 u8 bIInfo; /* Interrupt information */ 173 - } __attribute__((packed)); 173 + }; 174 174 175 175 176 176 #define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 6) & 0x01)