Commit 22564285 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] solo6x10: small big-endian fix

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 4718892f
...@@ -181,7 +181,7 @@ static int solo_dma_vin_region(struct solo_dev *solo_dev, u32 off, ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment