aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda665x.c
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-15 06:47:21 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 08:55:44 -0500
commitf5ae4f6f482191c531ea9e50ac91d9bd2ffca171 (patch)
treea5a1c9553ae58fb19eddbb594f8f0596a3b33e20 /drivers/media/dvb/frontends/tda665x.c
parent1e42dc78900e9d0ce89d77f3ba6aca00abd5f1b5 (diff)
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)
45 45
46 return err; 46 return err;
47exit: 47exit:
48 printk("%s: I/O Error err=<%d>\n", __func__, err); 48 printk(KERN_ERR "%s: I/O Error err=<%d>\n", __func__, err);
49 return err; 49 return err;
50} 50}
51 51
@@ -61,7 +61,7 @@ static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length)
61 61
62 return err; 62 return err;
63exit: 63exit:
64 printk("%s: I/O Error err=<%d>\n", __func__, err); 64 printk(KERN_ERR "%s: I/O Error err=<%d>\n", __func__, err);
65 return err; 65 return err;
66} 66}
67 67
@@ -79,7 +79,7 @@ static int tda665x_get_state(struct dvb_frontend *fe,
79 case DVBFE_TUNER_BANDWIDTH: 79 case DVBFE_TUNER_BANDWIDTH:
80 break; 80 break;
81 default: 81 default:
82 printk("%s: Unknown parameter (param=%d)\n", __func__, param); 82 printk(KERN_ERR "%s: Unknown parameter (param=%d)\n", __func__, param);
83 err = -EINVAL; 83 err = -EINVAL;
84 break; 84 break;
85 } 85 }
@@ -100,13 +100,13 @@ static int tda665x_get_status(struct dvb_frontend *fe, u32 *status)
100 goto exit; 100 goto exit;
101 101
102 if ((result >> 6) & 0x01) { 102 if ((result >> 6) & 0x01) {
103 printk("%s: Tuner Phase Locked\n", __func__); 103 printk(KERN_DEBUG "%s: Tuner Phase Locked\n", __func__);
104 *status = 1; 104 *status = 1;
105 } 105 }
106 106
107 return err; 107 return err;
108exit: 108exit:
109 printk("%s: I/O Error\n", __func__); 109 printk(KERN_ERR "%s: I/O Error\n", __func__);
110 return err; 110 return err;
111} 111}
112 112
@@ -124,7 +124,7 @@ static int tda665x_set_state(struct dvb_frontend *fe,
124 124
125 frequency = tstate->frequency; 125 frequency = tstate->frequency;
126 if ((frequency < config->frequency_max) || (frequency > config->frequency_min)) { 126 if ((frequency < config->frequency_max) || (frequency > config->frequency_min)) {
127 printk("%s: Frequency beyond limits, frequency=%d\n", __func__, frequency); 127 printk(KERN_ERR "%s: Frequency beyond limits, frequency=%d\n", __func__, frequency);
128 return -EINVAL; 128 return -EINVAL;
129 } 129 }
130 130
@@ -133,8 +133,8 @@ static int tda665x_set_state(struct dvb_frontend *fe,
133 frequency += config->ref_divider >> 1; 133 frequency += config->ref_divider >> 1;
134 frequency /= config->ref_divider; 134 frequency /= config->ref_divider;
135 135
136 buf[0] = (u8 ) (frequency & 0x7f00) >> 8; 136 buf[0] = (u8) (frequency & 0x7f00) >> 8;
137 buf[1] = (u8 ) (frequency & 0x00ff) >> 0; 137 buf[1] = (u8) (frequency & 0x00ff) >> 0;
138 buf[2] = 0x80 | 0x40 | 0x02; 138 buf[2] = 0x80 | 0x40 | 0x02;
139 buf[3] = 0x00; 139 buf[3] = 0x00;
140 140
@@ -178,7 +178,7 @@ static int tda665x_set_state(struct dvb_frontend *fe,
178 goto exit; 178 goto exit;
179 179
180 /* sleep for some time */ 180 /* sleep for some time */
181 printk("%s: Waiting to Phase LOCK\n", __func__); 181 printk(KERN_DEBUG "%s: Waiting to Phase LOCK\n", __func__);
182 msleep(20); 182 msleep(20);
183 /* check status */ 183 /* check status */
184 err = tda665x_get_status(fe, &status); 184 err = tda665x_get_status(fe, &status);
@@ -186,19 +186,19 @@ static int tda665x_set_state(struct dvb_frontend *fe,
186 goto exit; 186 goto exit;
187 187
188 if (status == 1) { 188 if (status == 1) {
189 printk("%s: Tuner Phase locked: status=%d\n", __func__, status); 189 printk(KERN_DEBUG "%s: Tuner Phase locked: status=%d\n", __func__, status);
190 state->frequency = frequency; /* cache successful state */ 190 state->frequency = frequency; /* cache successful state */
191 } else { 191 } else {
192 printk("%s: No Phase lock: status=%d\n", __func__, status); 192 printk(KERN_ERR "%s: No Phase lock: status=%d\n", __func__, status);
193 } 193 }
194 } else { 194 } else {
195 printk("%s: Unknown parameter (param=%d)\n", __func__, param); 195 printk(KERN_ERR "%s: Unknown parameter (param=%d)\n", __func__, param);
196 return -EINVAL; 196 return -EINVAL;
197 } 197 }
198 198
199 return 0; 199 return 0;
200exit: 200exit:
201 printk("%s: I/O Error\n", __func__); 201 printk(KERN_ERR "%s: I/O Error\n", __func__);
202 return err; 202 return err;
203} 203}
204 204
@@ -226,7 +226,7 @@ struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
226 struct tda665x_state *state = NULL; 226 struct tda665x_state *state = NULL;
227 struct dvb_tuner_info *info; 227 struct dvb_tuner_info *info;
228 228
229 state = kzalloc(sizeof (struct tda665x_state), GFP_KERNEL); 229 state = kzalloc(sizeof(struct tda665x_state), GFP_KERNEL);
230 if (state == NULL) 230 if (state == NULL)
231 goto exit; 231 goto exit;
232 232
@@ -237,12 +237,12 @@ struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
237 fe->ops.tuner_ops = tda665x_ops; 237 fe->ops.tuner_ops = tda665x_ops;
238 info = &fe->ops.tuner_ops.info; 238 info = &fe->ops.tuner_ops.info;
239 239
240 memcpy(info->name, config->name, sizeof (config->name)); 240 memcpy(info->name, config->name, sizeof(config->name));
241 info->frequency_min = config->frequency_min; 241 info->frequency_min = config->frequency_min;
242 info->frequency_max = config->frequency_max; 242 info->frequency_max = config->frequency_max;
243 info->frequency_step = config->frequency_offst; 243 info->frequency_step = config->frequency_offst;
244 244
245 printk("%s: Attaching TDA665x (%s) tuner\n", __func__, info->name); 245 printk(KERN_DEBUG "%s: Attaching TDA665x (%s) tuner\n", __func__, info->name);
246 246
247 return fe; 247 return fe;
248 248