summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2006-01-01 19:27:21 +0000
committerMichael Krufky <devnull@localhost>2006-01-01 19:27:21 +0000
commitcd30872d561c4bba79f0b1592fe5660e91310163 (patch)
treeb8842a097591fc8821e567983819689b6ca6fb0a /linux/drivers/media/dvb/dvb-usb
parentc774abc54b8803206774697b5403a6a8c68da1df (diff)
downloadmediapointer-dvb-s2-cd30872d561c4bba79f0b1592fe5660e91310163.tar.gz
mediapointer-dvb-s2-cd30872d561c4bba79f0b1592fe5660e91310163.tar.bz2
Small cxusb cleanups
- Add space after , in memcpy() - Initialize bpll array before memcpy() to pll_init. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/cxusb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/cxusb.c b/linux/drivers/media/dvb/dvb-usb/cxusb.c
index dbdca5887..1621f73c0 100644
--- a/linux/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c
@@ -177,19 +177,18 @@ static int cxusb_fmd1216me_tuner_attach(struct dvb_usb_device *d)
{
u8 bpll[4] = { 0x0b, 0xdc, 0x9c, 0xa0 };
d->pll_addr = 0x61;
- memcpy(d->pll_init,bpll,4);
+ memcpy(d->pll_init, bpll, 4);
d->pll_desc = &dvb_pll_fmd1216me;
return 0;
}
static int cxusb_lgh064f_tuner_attach(struct dvb_usb_device *d)
{
- u8 bpll[4];
- bpll[2] &= ~0x20;
- bpll[2] |= 0x18;
- bpll[3] = 0x50; /* 0x50 - digital, 0x20 - analog */
+ u8 bpll[4] = { 0x00, 0x00, 0x18, 0x50 };
+ /* bpll[2] : unset bit 3, set bits 4&5
+ bpll[3] : 0x50 - digital, 0x20 - analog */
d->pll_addr = 0x61;
- memcpy(d->pll_init,bpll,4);
+ memcpy(d->pll_init, bpll, 4);
d->pll_desc = &dvb_pll_tdvs_tua6034;
return 0;
}