summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/dibusb-common.c
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-04-17 19:21:31 +0200
committerPatrick Boettcher <pb@linuxtv.org>2006-04-17 19:21:31 +0200
commit21a8c2c3ec37a8d79151fd37849cf41877514fbf (patch)
tree4c3dcb0f072ea0aebda651b88abd0463ec7482e8 /linux/drivers/media/dvb/dvb-usb/dibusb-common.c
parentafdbbc48eaea9b0d9a539643a88aa5a74a63dde3 (diff)
downloadmediapointer-dvb-s2-21a8c2c3ec37a8d79151fd37849cf41877514fbf.tar.gz
mediapointer-dvb-s2-21a8c2c3ec37a8d79151fd37849cf41877514fbf.tar.bz2
MT2060: Code cleanups, adding to new build-mechanism
From: Patrick Boettcher <pb@linuxtv.org> Some minor code cleanups and added the MT2060 to new v4l-dvb-build-system, preliminarily under dvb/frontends. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dibusb-common.c')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dibusb-common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dibusb-common.c b/linux/drivers/media/dvb/dvb-usb/dibusb-common.c
index 88062b219..0111f3216 100644
--- a/linux/drivers/media/dvb/dvb-usb/dibusb-common.c
+++ b/linux/drivers/media/dvb/dvb-usb/dibusb-common.c
@@ -235,7 +235,7 @@ int dibusb_dib3000mc_tuner_attach (struct dvb_usb_device *d)
{
int ret;
u8 a,b;
- u16 if1=1220;
+ u16 if1 = 1220;
if (d->tuner_pass_ctrl) {
struct dibusb_state *st = d->priv;
@@ -243,17 +243,17 @@ int dibusb_dib3000mc_tuner_attach (struct dvb_usb_device *d)
// First IF calibration for Liteon Sticks
if (d->udev->descriptor.idVendor == USB_VID_LITEON &&
d->udev->descriptor.idProduct == USB_PID_LITEON_DVB_T_WARM) {
+
dibusb_read_eeprom_byte(d,0x7E,&a);
dibusb_read_eeprom_byte(d,0x7F,&b);
- if (a == 0xFF && b == 0xFF) {
+
+ if (a == 0xFF && b == 0xFF)
if1 = 1220;
- } else
- if (a == 0x00) {
+ else if (a == 0x00)
if1 = 1220+b;
- } else
- if (a == 0x80) {
+ else if (a == 0x80)
if1 = 1220-b;
- } else {
+ else {
warn("LITE-ON DVB-T Tuner : Strange IF1 calibration :%2X %2X\n",(int)a,(int)b);
if1 = 1220;
}