]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
V4L/DVB (13759): [Mantis] HIF I/O: Use the LSB octet only
authorManu Abraham <abraham.manu@gmail.com>
Fri, 4 Dec 2009 08:21:05 +0000 (05:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:37 +0000 (11:55 -0200)
Thanks to Abylai Ospan for pointing this out.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_hif.c

index 96611b67cb4bd43b865f14ec10a38765541b017e..1ccd8696953493f0fa5a66fe887497b5945c7574 100644 (file)
@@ -139,7 +139,7 @@ int mantis_hif_read_iom(struct mantis_ca *ca, u32 addr)
        hif_addr |= MANTIS_GPIF_PCMCIAREG;
        mmwrite(hif_addr, MANTIS_GPIF_ADDR);
 
-       return data;
+       return (u8) data;
 }
 
 int mantis_hif_write_iom(struct mantis_ca *ca, u32 addr, u8 data)