]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf94fc9e88a7fc173a93b7aa77dd5b4d8e89ed93b
treecd3edecad8522016a7de2545d34468c09dc511ab
parent425a5e7f156a6623bc89ff364643a106e027ec0f
[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