diff options
| author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-06-19 12:12:58 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-07 11:24:32 -0400 |
| commit | db455d66b9900a8a81fe474f11c78c8c8a95eefa (patch) | |
| tree | b05bdf1bd175e3ad7a63473015c2804e33613f04 /include/linux/slimbus.h | |
| parent | e0772de8a48b69d39624cdf99fac8f4a3fcc387b (diff) | |
slimbus: core: rearrange slim_eaddr structure
Rearrange struct slim_eaddr so that the structure is packed correctly
to be able to send in SLIMBus messages.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/slimbus.h')
| -rw-r--r-- | include/linux/slimbus.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/slimbus.h b/include/linux/slimbus.h index efa36a852dc3..63801bcc5e60 100644 --- a/include/linux/slimbus.h +++ b/include/linux/slimbus.h | |||
| @@ -14,16 +14,16 @@ extern struct bus_type slimbus_bus; | |||
| 14 | 14 | ||
| 15 | /** | 15 | /** |
| 16 | * struct slim_eaddr - Enumeration address for a SLIMbus device | 16 | * struct slim_eaddr - Enumeration address for a SLIMbus device |
| 17 | * @manf_id: Manufacturer Id for the device | ||
| 18 | * @prod_code: Product code | ||
| 19 | * @dev_index: Device index | ||
| 20 | * @instance: Instance value | 17 | * @instance: Instance value |
| 18 | * @dev_index: Device index | ||
| 19 | * @prod_code: Product code | ||
| 20 | * @manf_id: Manufacturer Id for the device | ||
| 21 | */ | 21 | */ |
| 22 | struct slim_eaddr { | 22 | struct slim_eaddr { |
| 23 | u16 manf_id; | ||
| 24 | u16 prod_code; | ||
| 25 | u8 dev_index; | ||
| 26 | u8 instance; | 23 | u8 instance; |
| 24 | u8 dev_index; | ||
| 25 | u16 prod_code; | ||
| 26 | u16 manf_id; | ||
| 27 | } __packed; | 27 | } __packed; |
| 28 | 28 | ||
| 29 | /** | 29 | /** |
