Commit d2999e1b authored by Robert Baldyga's avatar Robert Baldyga Committed by Felipe Balbi

tools: ffs-aio-example: fix header values endianess

We wrap numeric values of fs_count and hs_count fields in htole32,
because they should be in little-endian format.
Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 2eeb0016
......@@ -37,8 +37,8 @@ static const struct {
.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 = {
......
......@@ -35,8 +35,8 @@ static const struct {
.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 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment