[media] solo6x10: small big-endian fix

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Hans Verkuil 2013-03-15 11:17:12 -03:00 committed by Mauro Carvalho Chehab
parent 4718892f0f
commit 225642853a

View File

@ -181,7 +181,7 @@ static int solo_dma_vin_region(struct solo_dev *solo_dev, u32 off,
int ret = 0; int ret = 0;
for (i = 0; i < sizeof(buf) >> 1; i++) for (i = 0; i < sizeof(buf) >> 1; i++)
buf[i] = val; buf[i] = cpu_to_le16(val);
for (i = 0; i < reg_size; i += sizeof(buf)) for (i = 0; i < reg_size; i += sizeof(buf))
ret |= solo_p2m_dma(solo_dev, 1, buf, ret |= solo_p2m_dma(solo_dev, 1, buf,