Commit ba84190e authored by Johan Hovold's avatar Johan Hovold

USB: serial: cp210x: drop unnecessary packed attributes

Drop unnecessary packed attributes from structs without padding.

Link: https://lore.kernel.org/r/20200713105517.27796-5-johan@kernel.orgReviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent de9c7e9f
...@@ -435,7 +435,7 @@ struct cp210x_flow_ctl { ...@@ -435,7 +435,7 @@ struct cp210x_flow_ctl {
__le32 ulFlowReplace; __le32 ulFlowReplace;
__le32 ulXonLimit; __le32 ulXonLimit;
__le32 ulXoffLimit; __le32 ulXoffLimit;
} __packed; };
/* cp210x_flow_ctl::ulControlHandshake */ /* cp210x_flow_ctl::ulControlHandshake */
#define CP210X_SERIAL_DTR_MASK GENMASK(1, 0) #define CP210X_SERIAL_DTR_MASK GENMASK(1, 0)
...@@ -469,7 +469,7 @@ struct cp210x_flow_ctl { ...@@ -469,7 +469,7 @@ struct cp210x_flow_ctl {
struct cp210x_pin_mode { struct cp210x_pin_mode {
u8 eci; u8 eci;
u8 sci; u8 sci;
} __packed; };
#define CP210X_PIN_MODE_MODEM 0 #define CP210X_PIN_MODE_MODEM 0
#define CP210X_PIN_MODE_GPIO BIT(0) #define CP210X_PIN_MODE_GPIO BIT(0)
...@@ -532,7 +532,7 @@ struct cp210x_single_port_config { ...@@ -532,7 +532,7 @@ struct cp210x_single_port_config {
struct cp210x_gpio_write { struct cp210x_gpio_write {
u8 mask; u8 mask;
u8 state; u8 state;
} __packed; };
/* /*
* Helper to get interface number when we only have struct usb_serial. * Helper to get interface number when we only have struct usb_serial.
......
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