diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-05 10:08:45 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-05 10:08:45 -0300 |
commit | 9aa2d22f827055231502b339af60044582cc67c3 (patch) | |
tree | bd801419e69534d0042bf447a6bf0ed8c899f3a0 /linux/drivers/media/dvb/frontends/cx24110.h | |
parent | 9a68ced75fe38c14a4277067c4fcaeaf205b06ee (diff) | |
parent | 89bf8cd11f914eff585c23797fd88a641b9cb3dd (diff) | |
download | mediapointer-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.h | 15 |
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)) |