mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
greybus: pwm: fix config-request alignment
Fix alignment of the duty and period-fields in the config request, which should follow the which-field without any inserted padding. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
fcc4356de4
commit
b41caa99a2
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ struct gb_pwm_deactivate_request {
|
|||
|
||||
struct gb_pwm_config_request {
|
||||
__u8 which;
|
||||
__le32 duty;
|
||||
__le32 period;
|
||||
__le32 duty __packed;
|
||||
__le32 period __packed;
|
||||
};
|
||||
|
||||
struct gb_pwm_polarity_request {
|
||||
|
|
Loading…
Reference in a new issue