diff options
author | Michel Ludwig <michel.ludwig@gmail.com> | 2007-08-21 15:05:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:39:36 -0400 |
commit | a4cf976c77ce0865ceaa0f08cc1667538894936c (patch) | |
tree | f1fe2aa6df236626e7a6bde57ae21a45a8ea3976 | |
parent | fb31ab4532902a3e9f3fd5103be6ac67d952bced (diff) |
V4L/DVB (12786): tm6000: Remove code dealing with the ZL10353
Remove code dealing with the ZL10353 as this is all handled by the ZL10353
module.
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/staging/tm6000/tm6000-i2c.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/staging/tm6000/tm6000-i2c.c b/drivers/staging/tm6000/tm6000-i2c.c index a2986ae273fe..e9e63df186fc 100644 --- a/drivers/staging/tm6000/tm6000-i2c.c +++ b/drivers/staging/tm6000/tm6000-i2c.c | |||
@@ -59,7 +59,6 @@ static int tm6000_i2c_scan(struct i2c_adapter *i2c_adap, int addr) | |||
59 | if ( | 59 | if ( |
60 | (dev->caps.has_tuner && (addr==dev->tuner_addr)) || | 60 | (dev->caps.has_tuner && (addr==dev->tuner_addr)) || |
61 | (dev->caps.has_tda9874 && (addr==0xb0)) || | 61 | (dev->caps.has_tda9874 && (addr==0xb0)) || |
62 | (dev->caps.has_zl10353 && (addr==0x1e)) || | ||
63 | (dev->caps.has_eeprom && (addr==0xa0)) | 62 | (dev->caps.has_eeprom && (addr==0xa0)) |
64 | ) { | 63 | ) { |
65 | printk("Hack: enabling device at addr 0x%02x\n",addr); | 64 | printk("Hack: enabling device at addr 0x%02x\n",addr); |
@@ -271,30 +270,6 @@ static void dec_use(struct i2c_adapter *adap) | |||
271 | msleep (10); \ | 270 | msleep (10); \ |
272 | } | 271 | } |
273 | 272 | ||
274 | int static init_zl10353 (struct tm6000_core *dev, u8 addr) | ||
275 | { | ||
276 | int rc=0; | ||
277 | |||
278 | mass_write (addr, 0x89, { 0x38 }); | ||
279 | mass_write (addr, 0x8a, { 0x2d }); | ||
280 | mass_write (addr, 0x50, { 0xff }); | ||
281 | mass_write (addr, 0x51, { 0x00 , 0x00 , 0x50 }); | ||
282 | mass_write (addr, 0x54, { 0x72 , 0x49 }); | ||
283 | mass_write (addr, 0x87, { 0x0e , 0x0e }); | ||
284 | mass_write (addr, 0x7b, { 0x04 }); | ||
285 | mass_write (addr, 0x57, { 0xb8 , 0xc2 }); | ||
286 | mass_write (addr, 0x59, { 0x00 , 0x02 , 0x00 , 0x00 , 0x01 }); | ||
287 | mass_write (addr, 0x59, { 0x00 , 0x00 , 0xb3 , 0xd0 , 0x01 }); | ||
288 | mass_write (addr, 0x58, { 0xc0 , 0x11 , 0xc5 , 0xc2 , 0xa4 , 0x01 }); | ||
289 | mass_write (addr, 0x5e, { 0x01 }); | ||
290 | mass_write (addr, 0x67, { 0x1c , 0x20 }); | ||
291 | mass_write (addr, 0x75, { 0x33 }); | ||
292 | mass_write (addr, 0x85, { 0x10 , 0x40 }); | ||
293 | mass_write (addr, 0x8c, { 0x0b , 0x00 , 0x40 , 0x00 }); | ||
294 | |||
295 | return 0; | ||
296 | } | ||
297 | |||
298 | /* Tuner callback to provide the proper gpio changes needed for xc2028 */ | 273 | /* Tuner callback to provide the proper gpio changes needed for xc2028 */ |
299 | 274 | ||
300 | static int tm6000_tuner_callback(void *ptr, int command, int arg) | 275 | static int tm6000_tuner_callback(void *ptr, int command, int arg) |
@@ -358,9 +333,6 @@ static int attach_inform(struct i2c_client *client) | |||
358 | client->driver->driver.name, client->addr, client->name); | 333 | client->driver->driver.name, client->addr, client->name); |
359 | 334 | ||
360 | switch (client->addr<<1) { | 335 | switch (client->addr<<1) { |
361 | case 0x1e: | ||
362 | init_zl10353 (dev, client->addr); | ||
363 | return 0; | ||
364 | case 0xa0: | 336 | case 0xa0: |
365 | tm6000_i2c_eeprom(dev, eedata, sizeof(eedata)-1); | 337 | tm6000_i2c_eeprom(dev, eedata, sizeof(eedata)-1); |
366 | eedata[sizeof(eedata)]='\0'; | 338 | eedata[sizeof(eedata)]='\0'; |