Skip to content

Commit

Permalink
[media] cx88: replaced duplicated code with function call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
istvan_v@mailbox.hu authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 8eb79c0 commit 79a5b9a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/media/video/cx88/cx88-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -3245,13 +3245,7 @@ static void cx88_card_setup_pre_i2c(struct cx88_core *core)

case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL:
case CX88_BOARD_WINFAST_DTV1800H:
/* GPIO 12 (xc3028 tuner reset) */
cx_set(MO_GP1_IO, 0x1010);
mdelay(50);
cx_clear(MO_GP1_IO, 0x10);
mdelay(50);
cx_set(MO_GP1_IO, 0x10);
mdelay(50);
cx88_xc3028_winfast1800h_callback(core, XC2028_TUNER_RESET, 0);
break;

case CX88_BOARD_WINFAST_DTV1800H_XC4000:
Expand Down

0 comments on commit 79a5b9a

Please sign in to comment.