aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-02 17:59:48 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:43 -0400
commitce1719a61c7c0ac40c6244e6b354181dde27062d (patch)
treee5d843281a20316cb0c786a899f36f6ab53de6c9
parente059b0fac7d9df8bf759d7092a16221f0fd250e8 (diff)
V4L/DVB (7629): au8522: replace __FUNCTION__ with __func__
replace __FUNCTION__ with __func__ and clean associated checkpatch.pl warnings. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/dvb/frontends/au8522.c31
-rw-r--r--drivers/media/dvb/frontends/au8522.h2
2 files changed, 17 insertions, 16 deletions
diff --git a/drivers/media/dvb/frontends/au8522.c b/drivers/media/dvb/frontends/au8522.c
index caef885a122f..dc01e75cdc60 100644
--- a/drivers/media/dvb/frontends/au8522.c
+++ b/drivers/media/dvb/frontends/au8522.c
@@ -59,7 +59,7 @@ static int au8522_writereg(struct au8522_state *state, u16 reg, u8 data)
59 59
60 if (ret != 1) 60 if (ret != 1)
61 printk("%s: writereg error (reg == 0x%02x, val == 0x%04x, " 61 printk("%s: writereg error (reg == 0x%02x, val == 0x%04x, "
62 "ret == %i)\n", __FUNCTION__, reg, data, ret); 62 "ret == %i)\n", __func__, reg, data, ret);
63 63
64 return (ret != 1) ? -1 : 0; 64 return (ret != 1) ? -1 : 0;
65} 65}
@@ -79,7 +79,8 @@ static u8 au8522_readreg(struct au8522_state *state, u16 reg)
79 ret = i2c_transfer(state->i2c, msg, 2); 79 ret = i2c_transfer(state->i2c, msg, 2);
80 80
81 if (ret != 2) 81 if (ret != 2)
82 printk("%s: readreg error (ret == %i)\n", __FUNCTION__, ret); 82 printk(KERN_ERR "%s: readreg error (ret == %i)\n",
83 __func__, ret);
83 return b1[0]; 84 return b1[0];
84} 85}
85 86
@@ -87,7 +88,7 @@ static int au8522_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
87{ 88{
88 struct au8522_state *state = fe->demodulator_priv; 89 struct au8522_state *state = fe->demodulator_priv;
89 90
90 dprintk("%s(%d)\n", __FUNCTION__, enable); 91 dprintk("%s(%d)\n", __func__, enable);
91 92
92 if (enable) 93 if (enable)
93 return au8522_writereg(state, 0x106, 1); 94 return au8522_writereg(state, 0x106, 1);
@@ -100,11 +101,11 @@ static int au8522_enable_modulation(struct dvb_frontend *fe,
100{ 101{
101 struct au8522_state *state = fe->demodulator_priv; 102 struct au8522_state *state = fe->demodulator_priv;
102 103
103 dprintk("%s(0x%08x)\n", __FUNCTION__, m); 104 dprintk("%s(0x%08x)\n", __func__, m);
104 105
105 switch(m) { 106 switch(m) {
106 case VSB_8: 107 case VSB_8:
107 dprintk("%s() VSB_8\n", __FUNCTION__); 108 dprintk("%s() VSB_8\n", __func__);
108 109
109 //au8522_writereg(state, 0x410b, 0x84); // Serial 110 //au8522_writereg(state, 0x410b, 0x84); // Serial
110 111
@@ -220,7 +221,7 @@ static int au8522_enable_modulation(struct dvb_frontend *fe,
220 au8522_writereg(state, 0x8526, 0x01); 221 au8522_writereg(state, 0x8526, 0x01);
221 break; 222 break;
222 default: 223 default:
223 dprintk("%s() Invalid modulation\n", __FUNCTION__); 224 dprintk("%s() Invalid modulation\n", __func__);
224 return -EINVAL; 225 return -EINVAL;
225 } 226 }
226 227
@@ -235,7 +236,7 @@ static int au8522_set_frontend(struct dvb_frontend *fe,
235{ 236{
236 struct au8522_state *state = fe->demodulator_priv; 237 struct au8522_state *state = fe->demodulator_priv;
237 238
238 dprintk("%s(frequency=%d)\n", __FUNCTION__, p->frequency); 239 dprintk("%s(frequency=%d)\n", __func__, p->frequency);
239 240
240 state->current_frequency = p->frequency; 241 state->current_frequency = p->frequency;
241 242
@@ -258,7 +259,7 @@ static int au8522_set_frontend(struct dvb_frontend *fe,
258static int au8522_init(struct dvb_frontend *fe) 259static int au8522_init(struct dvb_frontend *fe)
259{ 260{
260 struct au8522_state *state = fe->demodulator_priv; 261 struct au8522_state *state = fe->demodulator_priv;
261 dprintk("%s()\n", __FUNCTION__); 262 dprintk("%s()\n", __func__);
262 263
263 au8522_writereg(state, 0xa4, 1 << 5); 264 au8522_writereg(state, 0xa4, 1 << 5);
264 265
@@ -276,7 +277,7 @@ static int au8522_read_status(struct dvb_frontend *fe, fe_status_t *status)
276 *status = 0; 277 *status = 0;
277 278
278 if (state->current_modulation == VSB_8) { 279 if (state->current_modulation == VSB_8) {
279 dprintk("%s() Checking VSB_8\n", __FUNCTION__); 280 dprintk("%s() Checking VSB_8\n", __func__);
280 //au8522_writereg(state, 0x80a4, 0x20); 281 //au8522_writereg(state, 0x80a4, 0x20);
281 reg = au8522_readreg(state, 0x4088); 282 reg = au8522_readreg(state, 0x4088);
282 if (reg & 0x01) 283 if (reg & 0x01)
@@ -284,7 +285,7 @@ static int au8522_read_status(struct dvb_frontend *fe, fe_status_t *status)
284 if (reg & 0x02) 285 if (reg & 0x02)
285 *status |= FE_HAS_LOCK | FE_HAS_SYNC; 286 *status |= FE_HAS_LOCK | FE_HAS_SYNC;
286 } else { 287 } else {
287 dprintk("%s() Checking QAM\n", __FUNCTION__); 288 dprintk("%s() Checking QAM\n", __func__);
288 reg = au8522_readreg(state, 0x4541); 289 reg = au8522_readreg(state, 0x4541);
289 if (reg & 0x80) 290 if (reg & 0x80)
290 *status |= FE_HAS_VITERBI; 291 *status |= FE_HAS_VITERBI;
@@ -294,13 +295,13 @@ static int au8522_read_status(struct dvb_frontend *fe, fe_status_t *status)
294 295
295 switch(state->config->status_mode) { 296 switch(state->config->status_mode) {
296 case AU8522_DEMODLOCKING: 297 case AU8522_DEMODLOCKING:
297 dprintk("%s() DEMODLOCKING\n", __FUNCTION__); 298 dprintk("%s() DEMODLOCKING\n", __func__);
298 if (*status & FE_HAS_VITERBI) 299 if (*status & FE_HAS_VITERBI)
299 *status |= FE_HAS_CARRIER | FE_HAS_SIGNAL; 300 *status |= FE_HAS_CARRIER | FE_HAS_SIGNAL;
300 break; 301 break;
301 case AU8522_TUNERLOCKING: 302 case AU8522_TUNERLOCKING:
302 /* Get the tuner status */ 303 /* Get the tuner status */
303 dprintk("%s() TUNERLOCKING\n", __FUNCTION__); 304 dprintk("%s() TUNERLOCKING\n", __func__);
304 if (fe->ops.tuner_ops.get_status) { 305 if (fe->ops.tuner_ops.get_status) {
305 if (fe->ops.i2c_gate_ctrl) 306 if (fe->ops.i2c_gate_ctrl)
306 fe->ops.i2c_gate_ctrl(fe, 1); 307 fe->ops.i2c_gate_ctrl(fe, 1);
@@ -315,14 +316,14 @@ static int au8522_read_status(struct dvb_frontend *fe, fe_status_t *status)
315 break; 316 break;
316 } 317 }
317 318
318 dprintk("%s() status 0x%08x\n", __FUNCTION__, *status); 319 dprintk("%s() status 0x%08x\n", __func__, *status);
319 320
320 return 0; 321 return 0;
321} 322}
322 323
323static int au8522_read_snr(struct dvb_frontend *fe, u16 *snr) 324static int au8522_read_snr(struct dvb_frontend *fe, u16 *snr)
324{ 325{
325 dprintk("%s()\n", __FUNCTION__); 326 dprintk("%s()\n", __func__);
326 327
327 *snr = 0; 328 *snr = 0;
328 329
@@ -395,7 +396,7 @@ struct dvb_frontend *au8522_attach(const struct au8522_config *config,
395 396
396 if (au8522_init(&state->frontend) != 0) { 397 if (au8522_init(&state->frontend) != 0) {
397 printk(KERN_ERR "%s: Failed to initialize correctly\n", 398 printk(KERN_ERR "%s: Failed to initialize correctly\n",
398 __FUNCTION__); 399 __func__);
399 goto error; 400 goto error;
400 } 401 }
401 402
diff --git a/drivers/media/dvb/frontends/au8522.h b/drivers/media/dvb/frontends/au8522.h
index 9952957ab7b0..19d5d1ef9842 100644
--- a/drivers/media/dvb/frontends/au8522.h
+++ b/drivers/media/dvb/frontends/au8522.h
@@ -43,7 +43,7 @@ static inline
43struct dvb_frontend *au8522_attach(const struct au8522_config *config, 43struct dvb_frontend *au8522_attach(const struct au8522_config *config,
44 struct i2c_adapter *i2c) 44 struct i2c_adapter *i2c)
45{ 45{
46 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 46 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
47 return NULL; 47 return NULL;
48} 48}
49#endif /* CONFIG_DVB_AU8522 */ 49#endif /* CONFIG_DVB_AU8522 */