Parcourir la source

[media] solo6x10: small big-endian fix

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil il y a 12 ans
Parent
commit
225642853a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      drivers/staging/media/solo6x10/disp.c

+ 1 - 1
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,