1
0
Fork 0

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>
hifive-unleashed-5.1
Srinivas Kandagatla 2018-06-19 17:12:58 +01:00 committed by Greg Kroah-Hartman
parent e0772de8a4
commit db455d66b9
1 changed files with 6 additions and 6 deletions

View File

@ -14,16 +14,16 @@ extern struct bus_type slimbus_bus;
/**
* struct slim_eaddr - Enumeration address for a SLIMbus device
* @manf_id: Manufacturer Id for the device
* @prod_code: Product code
* @dev_index: Device index
* @instance: Instance value
* @dev_index: Device index
* @prod_code: Product code
* @manf_id: Manufacturer Id for the device
*/
struct slim_eaddr {
u16 manf_id;
u16 prod_code;
u8 dev_index;
u8 instance;
u8 dev_index;
u16 prod_code;
u16 manf_id;
} __packed;
/**