summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/kl5kusb105.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-10 12:05:40 +0100
committerJohan Hovold <johan@kernel.org>2017-01-16 13:00:15 +0100
commitc2a24bb1e4b9e94cce1270a332c659240e1426bc (patch)
treec9622c2c5fe78f62e15408e61315b6e6ac3a4f3c /drivers/usb/serial/kl5kusb105.c
parent2d11f28207c2f9c9aac56ac2f8440f7a99a40017 (diff)
USB: serial: kl5kusb105: clean up struct definition
Drop redundant packed attribute from the port-settings struct which is already 1-byte aligned. Also replace __u8 with u8 for the field types as this is not a structure we share with user space. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/kl5kusb105.c')
-rw-r--r--drivers/usb/serial/kl5kusb105.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c
index 7550cf6c5f7c..28cc8ec1c92c 100644
--- a/drivers/usb/serial/kl5kusb105.c
+++ b/drivers/usb/serial/kl5kusb105.c
@@ -103,12 +103,12 @@ static struct usb_serial_driver * const serial_drivers[] = {
};
struct klsi_105_port_settings {
- __u8 pktlen; /* always 5, it seems */
- __u8 baudrate;
- __u8 databits;
- __u8 unknown1;
- __u8 unknown2;
-} __attribute__ ((packed));
+ u8 pktlen; /* always 5, it seems */
+ u8 baudrate;
+ u8 databits;
+ u8 unknown1;
+ u8 unknown2;
+};
struct klsi_105_private {
struct klsi_105_port_settings cfg;