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>
struct product_info {
int TiMode; /* Current TI Mode */
u8 hardware_type; /* Type of hardware */
-} __attribute__((packed));
+} __packed;
/*
* Edgeport firmware header
u8 YBufAddr;
u8 YByteCount;
u8 BufferSize;
-} __attribute__((packed));
+};
/*
char cXoff; /* XOFF character */
u8 bUartMode; /* Will be updated when a user */
/* interface is defined */
-} __attribute__((packed));
+};
/*
struct ump_interrupt {
u8 bICode; /* Interrupt code (interrupt num) */
u8 bIInfo; /* Interrupt information */
-} __attribute__((packed));
+};
#define TIUMP_GET_PORT_FROM_CODE(c) (((c) >> 6) & 0x01)