summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-xc2028.c
diff options
context:
space:
mode:
authorDevin Heitmueller <devin.heitmueller@gmail.com>2008-04-18 02:41:16 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 19:09:41 +0200
commit83244025e70aadd7e8baad520decf5d53d534d8f (patch)
treed2566cc2a2156d8a563287e16fd391601bde8db0 /drivers/media/video/tuner-xc2028.c
parentV4L/DVB (7607): CodingStyle fixes (diff)
downloadlinux-83244025e70aadd7e8baad520decf5d53d534d8f.tar.xz
linux-83244025e70aadd7e8baad520decf5d53d534d8f.zip
V4L/DVB (7608): em28xx-dvb: Some cleanups and fixes
em28xx-dvb.c: - Remove unneeded xc3028_ctrl structure. The driver automatically preserves the previous value tuner-xc2028.c: - Make the return type for xc2028_get_reg signed, since all of the callers are looking for "< 0" to detect errors. Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r--drivers/media/video/tuner-xc2028.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index 95d5922eac95..9dd688ec3cff 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -130,7 +130,7 @@ struct xc2028_data {
_rc; \
})
-static unsigned int xc2028_get_reg(struct xc2028_data *priv, u16 reg, u16 *val)
+static int xc2028_get_reg(struct xc2028_data *priv, u16 reg, u16 *val)
{
unsigned char buf[2];
unsigned char ibuf[2];