提交 d2999e1b 编写于 作者: R Robert Baldyga 提交者: 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: NMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册