]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] solo6x10: small big-endian fix
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 15 Mar 2013 14:17:12 +0000 (11:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 11:48:59 +0000 (08:48 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/solo6x10/disp.c

index 3dcaad98c70f39712338ff06caea150e723901c1..7007006e96389e16d5ac03a1557d744cc37f4241 100644 (file)
@@ -181,7 +181,7 @@ static int solo_dma_vin_region(struct solo_dev *solo_dev, u32 off,
        int ret = 0;
 
        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))
                ret |= solo_p2m_dma(solo_dev, 1, buf,