summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/cx24110.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-09-05 10:08:45 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-05 10:08:45 -0300
commit9aa2d22f827055231502b339af60044582cc67c3 (patch)
treebd801419e69534d0042bf447a6bf0ed8c899f3a0 /linux/drivers/media/dvb/frontends/cx24110.h
parent9a68ced75fe38c14a4277067c4fcaeaf205b06ee (diff)
parent89bf8cd11f914eff585c23797fd88a641b9cb3dd (diff)
downloadmediapointer-dvb-s2-9aa2d22f827055231502b339af60044582cc67c3.tar.gz
mediapointer-dvb-s2-9aa2d22f827055231502b339af60044582cc67c3.tar.bz2
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/cx24110.h')
-rw-r--r--linux/drivers/media/dvb/frontends/cx24110.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24110.h b/linux/drivers/media/dvb/frontends/cx24110.h
index 1792adb23..fdcceee91 100644
--- a/linux/drivers/media/dvb/frontends/cx24110.h
+++ b/linux/drivers/media/dvb/frontends/cx24110.h
@@ -33,12 +33,17 @@ struct cx24110_config
u8 demod_address;
};
-static inline int cx24110_pll_write(struct dvb_frontend *fe, u32 val) {
- int r = 0;
- u8 buf[] = {(u8) (val>>24), (u8) (val>>16), (u8) (val>>8)};
+static inline int cx24110_pll_write(struct dvb_frontend *fe, u32 val)
+{
+ u8 buf[] = {
+ (u8)((val >> 24) & 0xff),
+ (u8)((val >> 16) & 0xff),
+ (u8)((val >> 8) & 0xff)
+ };
+
if (fe->ops.write)
- r = fe->ops.write(fe, buf, 3);
- return r;
+ return fe->ops.write(fe, buf, 3);
+ return 0;
}
#if defined(CONFIG_DVB_CX24110) || (defined(CONFIG_DVB_CX24110_MODULE) && defined(MODULE))