summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda665x.c
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-15 12:47:21 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 14:55:44 +0100
commitf5ae4f6f482191c531ea9e50ac91d9bd2ffca171 (patch)
treea5a1c9553ae58fb19eddbb594f8f0596a3b33e20 /drivers/media/dvb/frontends/tda665x.c
parentV4L/DVB (13807): Fix: Free device in the device registration failure case (diff)
downloadlinux-f5ae4f6f482191c531ea9e50ac91d9bd2ffca171.tar.xz
linux-f5ae4f6f482191c531ea9e50ac91d9bd2ffca171.zip
V4L/DVB (13809): Fix Checkpatch violations
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/tda665x.c')
-rw-r--r--drivers/media/dvb/frontends/tda665x.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/media/dvb/frontends/tda665x.c b/drivers/media/dvb/frontends/tda665x.c
index 0732a2d38e10..87d52739c828 100644
--- a/drivers/media/dvb/frontends/tda665x.c
+++ b/drivers/media/dvb/frontends/tda665x.c
@@ -45,7 +45,7 @@ static int tda665x_read(struct tda665x_state *state, u8 *buf)
return err;
exit:
- printk("%s: I/O Error err=<%d>\n", __func__, err);
+ printk(KERN_ERR "%s: I/O Error err=<%d>\n", __func__, err);
return err;
}
@@ -61,7 +61,7 @@ static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length)
return err;
exit:
- printk("%s: I/O Error err=<%d>\n", __func__, err);
+ printk(KERN_ERR "%s: I/O Error err=<%d>\n", __func__, err);
return err;
}
@@ -79,7 +79,7 @@ static int tda665x_get_state(struct dvb_frontend *fe,
case DVBFE_TUNER_BANDWIDTH:
break;
default:
- printk("%s: Unknown parameter (param=%d)\n", __func__, param);
+ printk(KERN_ERR "%s: Unknown parameter (param=%d)\n", __func__, param);
err = -EINVAL;
break;
}
@@ -100,13 +100,13 @@ static int tda665x_get_status(struct dvb_frontend *fe, u32 *status)
goto exit;
if ((result >> 6) & 0x01) {
- printk("%s: Tuner Phase Locked\n", __func__);
+ printk(KERN_DEBUG "%s: Tuner Phase Locked\n", __func__);
*status = 1;
}
return err;
exit:
- printk("%s: I/O Error\n", __func__);
+ printk(KERN_ERR "%s: I/O Error\n", __func__);
return err;
}
@@ -124,7 +124,7 @@ static int tda665x_set_state(struct dvb_frontend *fe,
frequency = tstate->frequency;
if ((frequency < config->frequency_max) || (frequency > config->frequency_min)) {
- printk("%s: Frequency beyond limits, frequency=%d\n", __func__, frequency);
+ printk(KERN_ERR "%s: Frequency beyond limits, frequency=%d\n", __func__, frequency);
return -EINVAL;
}
@@ -133,8 +133,8 @@ static int tda665x_set_state(struct dvb_frontend *fe,
frequency += config->ref_divider >> 1;
frequency /= config->ref_divider;
- buf[0] = (u8 ) (frequency & 0x7f00) >> 8;
- buf[1] = (u8 ) (frequency & 0x00ff) >> 0;
+ buf[0] = (u8) (frequency & 0x7f00) >> 8;
+ buf[1] = (u8) (frequency & 0x00ff) >> 0;
buf[2] = 0x80 | 0x40 | 0x02;
buf[3] = 0x00;
@@ -178,7 +178,7 @@ static int tda665x_set_state(struct dvb_frontend *fe,
goto exit;
/* sleep for some time */
- printk("%s: Waiting to Phase LOCK\n", __func__);
+ printk(KERN_DEBUG "%s: Waiting to Phase LOCK\n", __func__);
msleep(20);
/* check status */
err = tda665x_get_status(fe, &status);
@@ -186,19 +186,19 @@ static int tda665x_set_state(struct dvb_frontend *fe,
goto exit;
if (status == 1) {
- printk("%s: Tuner Phase locked: status=%d\n", __func__, status);
+ printk(KERN_DEBUG "%s: Tuner Phase locked: status=%d\n", __func__, status);
state->frequency = frequency; /* cache successful state */
} else {
- printk("%s: No Phase lock: status=%d\n", __func__, status);
+ printk(KERN_ERR "%s: No Phase lock: status=%d\n", __func__, status);
}
} else {
- printk("%s: Unknown parameter (param=%d)\n", __func__, param);
+ printk(KERN_ERR "%s: Unknown parameter (param=%d)\n", __func__, param);
return -EINVAL;
}
return 0;
exit:
- printk("%s: I/O Error\n", __func__);
+ printk(KERN_ERR "%s: I/O Error\n", __func__);
return err;
}
@@ -226,7 +226,7 @@ struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
struct tda665x_state *state = NULL;
struct dvb_tuner_info *info;
- state = kzalloc(sizeof (struct tda665x_state), GFP_KERNEL);
+ state = kzalloc(sizeof(struct tda665x_state), GFP_KERNEL);
if (state == NULL)
goto exit;
@@ -237,12 +237,12 @@ struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
fe->ops.tuner_ops = tda665x_ops;
info = &fe->ops.tuner_ops.info;
- memcpy(info->name, config->name, sizeof (config->name));
+ memcpy(info->name, config->name, sizeof(config->name));
info->frequency_min = config->frequency_min;
info->frequency_max = config->frequency_max;
info->frequency_step = config->frequency_offst;
- printk("%s: Attaching TDA665x (%s) tuner\n", __func__, info->name);
+ printk(KERN_DEBUG "%s: Attaching TDA665x (%s) tuner\n", __func__, info->name);
return fe;