diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-28 16:08:53 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-10-12 17:27:19 +0300 |
commit | 9767c910fa20d8d1fef786795a271d5e236383ca (patch) | |
tree | 1bf422d5e05856f1fe299c4963fb77055cae8b8a /drivers/media/video/saa7164/saa7164.h | |
parent | b6a9dc365dce00946080ccc482fc20a6b6c1476b (diff) | |
download | linux-9767c910fa20d8d1fef786795a271d5e236383ca.tar.xz |
saa7164: fix endian conversion in saa7164_bus_set()
commit 773ddbd228dc16a4829836e1dc16383e44c8575e upstream.
The msg->command field is 32 bits, and we should fill it with a call
to cpu_to_le32(). The current code is broke on big endian systems.
On little endian systems it truncates the 32 bit value to 16 bits
which probably still works fine.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/media/video/saa7164/saa7164.h')
0 files changed, 0 insertions, 0 deletions