From: Hans Verkuil Date: Fri, 15 Mar 2013 14:17:12 +0000 (-0300) Subject: [media] solo6x10: small big-endian fix X-Git-Tag: firefly_0821_release~3680^2~618^2~210 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=225642853a1f2536757b775f76d925b78622ae28;p=firefly-linux-kernel-4.4.55.git [media] solo6x10: small big-endian fix Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/solo6x10/disp.c b/drivers/staging/media/solo6x10/disp.c index 3dcaad98c70f..7007006e9638 100644 --- a/drivers/staging/media/solo6x10/disp.c +++ b/drivers/staging/media/solo6x10/disp.c @@ -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,