Commit c2a24bb1 authored by Johan Hovold's avatar Johan Hovold

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 2d11f282
...@@ -103,12 +103,12 @@ static struct usb_serial_driver * const serial_drivers[] = { ...@@ -103,12 +103,12 @@ static struct usb_serial_driver * const serial_drivers[] = {
}; };
struct klsi_105_port_settings { struct klsi_105_port_settings {
__u8 pktlen; /* always 5, it seems */ u8 pktlen; /* always 5, it seems */
__u8 baudrate; u8 baudrate;
__u8 databits; u8 databits;
__u8 unknown1; u8 unknown1;
__u8 unknown2; u8 unknown2;
} __attribute__ ((packed)); };
struct klsi_105_private { struct klsi_105_private {
struct klsi_105_port_settings cfg; struct klsi_105_port_settings cfg;
......
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