aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
diff options
context:
space:
mode:
authoristvan_v@mailbox.hu <istvan_v@mailbox.hu>2011-06-07 12:21:02 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:53:05 -0400
commit79a5b9a2d99f9085dd84e796c20756e4e283b6c9 (patch)
tree6e3becdfdd4256ebd1eef80664c63a5ba698950b /drivers/media/video/cx88
parent8eb79c0b9ba602123279bcc0cd65458a0dfcecfc (diff)
[media] cx88: replaced duplicated code with function call
The following patch replaces code to reset the XC3028 tuner with a call to the tuner reset callback. Signed-off-by: Istvan Varga <istvan_v@mailbox.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r--drivers/media/video/cx88/cx88-cards.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c
index e2a736ef2a7d..0d719faafd8a 100644
--- a/drivers/media/video/cx88/cx88-cards.c
+++ b/drivers/media/video/cx88/cx88-cards.c
@@ -3245,13 +3245,7 @@ static void cx88_card_setup_pre_i2c(struct cx88_core *core)
3245 3245
3246 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL: 3246 case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL:
3247 case CX88_BOARD_WINFAST_DTV1800H: 3247 case CX88_BOARD_WINFAST_DTV1800H:
3248 /* GPIO 12 (xc3028 tuner reset) */ 3248 cx88_xc3028_winfast1800h_callback(core, XC2028_TUNER_RESET, 0);
3249 cx_set(MO_GP1_IO, 0x1010);
3250 mdelay(50);
3251 cx_clear(MO_GP1_IO, 0x10);
3252 mdelay(50);
3253 cx_set(MO_GP1_IO, 0x10);
3254 mdelay(50);
3255 break; 3249 break;
3256 3250
3257 case CX88_BOARD_WINFAST_DTV1800H_XC4000: 3251 case CX88_BOARD_WINFAST_DTV1800H_XC4000: