Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113929
b: refs/heads/master
c: 2a6003c
h: refs/heads/master
i:
  113927: ab3435f
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent b1d587a commit 69b1571
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89fd28545c7390eb6c63d3d9e6faac78942dd1a4
refs/heads/master: 2a6003c20771ca16fc6386b5fd258df2f2fa8232
16 changes: 8 additions & 8 deletions trunk/drivers/media/common/tuners/xc5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ static LIST_HEAD(hybrid_tuner_instance_list);
#define XC5000_DEFAULT_FIRMWARE_SIZE 12332

struct xc5000_priv {
struct xc5000_config *cfg;

struct tuner_i2c_props i2c_props;
struct list_head hybrid_tuner_instance_list;

u32 if_khz;
u32 freq_hz;
u32 bandwidth;
u8 video_standard;
u8 rf_mode;

void *devptr;
int (*tuner_callback) (void *priv, int command, int arg);
};

/* Misc Defines */
Expand Down Expand Up @@ -233,9 +233,8 @@ static void xc5000_TunerReset(struct dvb_frontend *fe)

dprintk(1, "%s()\n", __func__);

if (priv->cfg->tuner_callback) {
ret = priv->cfg->tuner_callback(priv->devptr,
XC5000_TUNER_RESET, 0);
if (priv->tuner_callback) {
ret = priv->tuner_callback(priv->devptr, XC5000_TUNER_RESET, 0);
if (ret)
printk(KERN_ERR "xc5000: reset failed\n");
} else
Expand Down Expand Up @@ -692,10 +691,10 @@ static int xc5000_set_params(struct dvb_frontend *fe,
return -EREMOTEIO;
}

ret = xc_set_IF_frequency(priv, priv->cfg->if_khz);
ret = xc_set_IF_frequency(priv, priv->if_khz);
if (ret != XC_RESULT_SUCCESS) {
printk(KERN_ERR "xc5000: xc_Set_IF_frequency(%d) failed\n",
priv->cfg->if_khz);
priv->if_khz);
return -EIO;
}

Expand Down Expand Up @@ -972,9 +971,10 @@ struct dvb_frontend *xc5000_attach(struct dvb_frontend *fe,
break;
case 1:
/* new tuner instance */
priv->cfg = cfg;
priv->bandwidth = BANDWIDTH_6_MHZ;
priv->devptr = devptr;
priv->if_khz = cfg->if_khz;
priv->tuner_callback = cfg->tuner_callback;

fe->tuner_priv = priv;
break;
Expand Down

0 comments on commit 69b1571

Please sign in to comment.