[media] siano: simplify message endianness logic
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 9 Mar 2013 14:34:56 +0000 (11:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 10:46:18 +0000 (07:46 -0300)
commit80ccb51a0f970ab0935a8be70b677ecbcdf74e3e
treecd3edecad8522016a7de2545d34468c09dc511ab
parentfe802fd92d6abd1fce2ae8d03a073807d25e9453
[media] siano: simplify message endianness logic

Currently, every time a message is sent or received, the endiannes
need to be fixed on big endian machines. This is currently done
on every call to the send API, and on every msg reception logic.
Instead of doing that, move it to the send/receive functions.
That simplifies the logic and avoids the risk of forgetting to
fix it somewhere.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/siano/smscoreapi.c
drivers/media/common/siano/smsdvb.c
drivers/media/mmc/siano/smssdio.c
drivers/media/usb/siano/smsusb.c