diff options
| author | Robert Baldyga <r.baldyga@samsung.com> | 2014-06-25 02:26:47 -0400 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2014-06-30 13:53:27 -0400 |
| commit | d2999e1b10fb740371a896b33fa1e6d89669ffba (patch) | |
| tree | 7bc4c16df988c566134004c3d2bea6594d8c2ec1 /tools/usb/ffs-aio-example/multibuff | |
| parent | 2eeb0016c1242f275f9ebacc687ab639689f8bad (diff) | |
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: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'tools/usb/ffs-aio-example/multibuff')
| -rw-r--r-- | tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c b/tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c index 87216a0c4a8b..a349a872781b 100644 --- a/tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c +++ b/tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c | |||
| @@ -37,8 +37,8 @@ static const struct { | |||
| 37 | .header = { | 37 | .header = { |
| 38 | .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC), | 38 | .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC), |
| 39 | .length = htole32(sizeof(descriptors)), | 39 | .length = htole32(sizeof(descriptors)), |
| 40 | .fs_count = 3, | 40 | .fs_count = htole32(3), |
| 41 | .hs_count = 3, | 41 | .hs_count = htole32(3), |
| 42 | }, | 42 | }, |
| 43 | .fs_descs = { | 43 | .fs_descs = { |
| 44 | .intf = { | 44 | .intf = { |
