We wrap numeric values of fs_count and hs_count fields in htole32,
because they should be in little-endian format.
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Robert Baldyga <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
.header = {
.magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC),
.length = htole32(sizeof(descriptors)),
- .fs_count = 3,
- .hs_count = 3,
+ .fs_count = htole32(3),
+ .hs_count = htole32(3),
},
.fs_descs = {
.intf = {
.header = {
.magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC),
.length = htole32(sizeof(descriptors)),
- .fs_count = 3,
- .hs_count = 3,
+ .fs_count = htole32(3),
+ .hs_count = htole32(3),
},
.fs_descs = {
.intf = {