diff options
author | Gerd Knorr <devnull@localhost> | 2005-01-31 11:35:05 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2005-01-31 11:35:05 +0000 |
commit | f1ec0a023fbcab9ce62218714d1cd79ddcdeb426 (patch) | |
tree | 3a921f7dbcc54592213fbebd08aa205c721de5df /linux/drivers/media/video/tveeprom.c | |
parent | e2e127390240243dc1f163eb96711e3792620a18 (diff) | |
download | mediapointer-dvb-s2-f1ec0a023fbcab9ce62218714d1cd79ddcdeb426.tar.gz mediapointer-dvb-s2-f1ec0a023fbcab9ce62218714d1cd79ddcdeb426.tar.bz2 |
- whitespace cleanups.
Diffstat (limited to 'linux/drivers/media/video/tveeprom.c')
-rw-r--r-- | linux/drivers/media/video/tveeprom.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/linux/drivers/media/video/tveeprom.c b/linux/drivers/media/video/tveeprom.c index d4448de13..dafe12794 100644 --- a/linux/drivers/media/video/tveeprom.c +++ b/linux/drivers/media/video/tveeprom.c @@ -1,4 +1,4 @@ -/* +/* * tveeprom - eeprom decoder for tvcard configuration eeproms * * Data and decoding routines shamelessly borrowed from bttv-cards.c @@ -10,7 +10,7 @@ (c) 1999-2001 Gerd Knorr <kraxel@goldbach.in-berlin.de> * Adjustments to fit a more general model and all bugs: - + Copyright (C) 2003 John Klar <linpvr at projectplasma.com> * This program is free software; you can redistribute it and/or modify @@ -83,12 +83,12 @@ hauppauge_tuner_fmt[] = supplying this information. Note that many tuners where only used for testing and never made it to the outside world. So you will only see a subset in actual produced cards. */ -static struct HAUPPAUGE_TUNER +static struct HAUPPAUGE_TUNER { int id; char *name; -} -hauppauge_tuner[] = +} +hauppauge_tuner[] = { /* 0-9 */ { TUNER_ABSENT, "None" }, @@ -143,7 +143,7 @@ hauppauge_tuner[] = { TUNER_ABSENT, "Philips TD1536D FH 44"}, { TUNER_LG_NTSC_FM, "LG TP18NSR01F"}, { TUNER_LG_PAL_FM, "LG TP18PSB01D"}, - { TUNER_LG_PAL, "LG TP18PSB11D"}, + { TUNER_LG_PAL, "LG TP18PSB11D"}, { TUNER_LG_PAL_I_FM, "LG TAPC-I001D"}, /* 50-59 */ { TUNER_LG_PAL_I, "LG TAPC-I701D"}, @@ -271,7 +271,7 @@ void tveeprom_hauppauge_analog(struct tveeprom *tvee, unsigned char *eeprom_data int i, j, len, done, tag, tuner = 0, t_format = 0; char *t_name = NULL, *t_fmt_name = NULL; - + dprintk(1, "%s\n",__FUNCTION__); tvee->revision = done = len = 0; for (i = 0; !done && i < 256; i += len) { @@ -308,34 +308,34 @@ void tveeprom_hauppauge_analog(struct tveeprom *tvee, unsigned char *eeprom_data tuner = eeprom_data[i+6]; t_format = eeprom_data[i+5]; tvee->has_radio = eeprom_data[i+len-1]; - tvee->model = - eeprom_data[i+8] + + tvee->model = + eeprom_data[i+8] + (eeprom_data[i+9] << 8); tvee->revision = eeprom_data[i+10] + (eeprom_data[i+11] << 8) + (eeprom_data[i+12] << 16); break; case 0x01: - tvee->serial_number = - eeprom_data[i+6] + - (eeprom_data[i+7] << 8) + + tvee->serial_number = + eeprom_data[i+6] + + (eeprom_data[i+7] << 8) + (eeprom_data[i+8] << 16); break; case 0x02: tvee->audio_processor = eeprom_data[i+2] & 0x0f; break; case 0x04: - tvee->serial_number = - eeprom_data[i+5] + - (eeprom_data[i+6] << 8) + + tvee->serial_number = + eeprom_data[i+5] + + (eeprom_data[i+6] << 8) + (eeprom_data[i+7] << 16); break; case 0x05: tvee->audio_processor = eeprom_data[i+1] & 0x0f; break; case 0x06: - tvee->model = - eeprom_data[i+1] + + tvee->model = + eeprom_data[i+1] + (eeprom_data[i+2] << 8); tvee->revision = eeprom_data[i+5] + (eeprom_data[i+6] << 8) + |