diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2007-07-24 08:08:52 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2007-07-24 08:08:52 -0300 |
commit | 14e57283f29d544fe411c104a5da4bde5d94199d (patch) | |
tree | 8ff0716f39bdf46fb58fd7c05f98dfa0ea069fe5 /linux/drivers/staging | |
parent | f9f816e8db559de1697ed3ee01bf0b2f924f05d0 (diff) | |
download | mediapointer-dvb-s2-14e57283f29d544fe411c104a5da4bde5d94199d.tar.gz mediapointer-dvb-s2-14e57283f29d544fe411c104a5da4bde5d94199d.tar.bz2 |
tm6000: Modify tuner_callback to user the device's GPIO address field for tuner reset.
From: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/staging')
-rw-r--r-- | linux/drivers/staging/tm6000/tm6000-i2c.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/linux/drivers/staging/tm6000/tm6000-i2c.c b/linux/drivers/staging/tm6000/tm6000-i2c.c index a7cf929a3..48240bba4 100644 --- a/linux/drivers/staging/tm6000/tm6000-i2c.c +++ b/linux/drivers/staging/tm6000/tm6000-i2c.c @@ -336,10 +336,10 @@ static int tm6000_tuner_callback(void *ptr, int command, int arg) switch (arg) { case 0: tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN, - TM6000_GPIO_1, 0x00); + dev->tuner_reset_gpio, 0x00); msleep(10); tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN, - TM6000_GPIO_1, 0x01); + dev->tuner_reset_gpio, 0x01); break; case 1: tm6000_set_reg (dev, REQ_04_EN_DISABLE_MCU_INT, @@ -356,14 +356,6 @@ static int tm6000_tuner_callback(void *ptr, int command, int arg) rc=tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN, TM6000_GPIO_CLK, 1); break; - case 4: - tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN, - TM6000_GPIO_4, 0x00); - msleep(10); - tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN, - TM6000_GPIO_4, 0x01); - break; - } } return (rc); |