greybus: greybus_protocols: use only type attributes for message packing
authorJohan Hovold <johan@hovoldconsulting.com>
Sat, 1 Aug 2015 09:50:41 +0000 (11:50 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 4 Aug 2015 03:00:41 +0000 (20:00 -0700)
For consistency reasons, use only type attributes for message packing.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index e49376d283f0170bb1fa8f1a700980fc7897a352..290b85f6ff6845ac725157644be5985f5e187c94 100644 (file)
@@ -277,8 +277,8 @@ struct gb_gpio_set_value_request {
 
 struct gb_gpio_set_debounce_request {
        __u8    which;
-       __le16  usec __packed;
-};
+       __le16  usec;
+} __packed;
 /* debounce response has no payload */
 
 struct gb_gpio_irq_type_request {
@@ -336,9 +336,9 @@ struct gb_pwm_deactivate_request {
 
 struct gb_pwm_config_request {
        __u8    which;
-       __le32  duty __packed;
-       __le32  period __packed;
-};
+       __le32  duty;
+       __le32  period;
+} __packed;
 
 struct gb_pwm_polarity_request {
        __u8    which;