diff options
| author | Alexander Beregalov <a.beregalov@gmail.com> | 2008-07-21 15:21:58 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:46 -0400 |
| commit | 95fc2ead8406a6d0aa6d8ccf30125f4a50ae323f (patch) | |
| tree | dbd677574fe45535edd378df09c34357b6454bbc /drivers | |
| parent | 29e66a6ce84abe04bc809ddb35634752881dec79 (diff) | |
V4L/DVB (8560): replace __FUNCTION__ with __func__
v4l/drx397xD: replace __FUNCTION__ with __func__
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/media/dvb/frontends/drx397xD.c | 34 | ||||
| -rw-r--r-- | drivers/media/dvb/frontends/drx397xD.h | 2 |
2 files changed, 18 insertions, 18 deletions
diff --git a/drivers/media/dvb/frontends/drx397xD.c b/drivers/media/dvb/frontends/drx397xD.c index 3cbed874a6f8..e19147bad178 100644 --- a/drivers/media/dvb/frontends/drx397xD.c +++ b/drivers/media/dvb/frontends/drx397xD.c | |||
| @@ -96,7 +96,7 @@ static void drx_release_fw(struct drx397xD_state *s) | |||
| 96 | { | 96 | { |
| 97 | fw_ix_t ix = s->chip_rev; | 97 | fw_ix_t ix = s->chip_rev; |
| 98 | 98 | ||
| 99 | pr_debug("%s\n", __FUNCTION__); | 99 | pr_debug("%s\n", __func__); |
| 100 | 100 | ||
| 101 | write_lock(&fw[ix].lock); | 101 | write_lock(&fw[ix].lock); |
| 102 | if (fw[ix].refcnt) { | 102 | if (fw[ix].refcnt) { |
| @@ -113,7 +113,7 @@ static int drx_load_fw(struct drx397xD_state *s, fw_ix_t ix) | |||
| 113 | size_t size, len; | 113 | size_t size, len; |
| 114 | int i = 0, j, rc = -EINVAL; | 114 | int i = 0, j, rc = -EINVAL; |
| 115 | 115 | ||
| 116 | pr_debug("%s\n", __FUNCTION__); | 116 | pr_debug("%s\n", __func__); |
| 117 | 117 | ||
| 118 | if (ix < 0 || ix >= ARRAY_SIZE(fw)) | 118 | if (ix < 0 || ix >= ARRAY_SIZE(fw)) |
| 119 | return -EINVAL; | 119 | return -EINVAL; |
| @@ -197,10 +197,10 @@ static int write_fw(struct drx397xD_state *s, blob_ix_t ix) | |||
| 197 | int len, rc = 0, i = 0; | 197 | int len, rc = 0, i = 0; |
| 198 | 198 | ||
| 199 | if (ix < 0 || ix >= ARRAY_SIZE(blob_name)) { | 199 | if (ix < 0 || ix >= ARRAY_SIZE(blob_name)) { |
| 200 | pr_debug("%s drx_fw_ix_t out of range\n", __FUNCTION__); | 200 | pr_debug("%s drx_fw_ix_t out of range\n", __func__); |
| 201 | return -EINVAL; | 201 | return -EINVAL; |
| 202 | } | 202 | } |
| 203 | pr_debug("%s %s\n", __FUNCTION__, blob_name[ix]); | 203 | pr_debug("%s %s\n", __func__, blob_name[ix]); |
| 204 | 204 | ||
| 205 | read_lock(&fw[s->chip_rev].lock); | 205 | read_lock(&fw[s->chip_rev].lock); |
| 206 | data = fw[s->chip_rev].data[ix]; | 206 | data = fw[s->chip_rev].data[ix]; |
| @@ -305,7 +305,7 @@ static int PLL_Set(struct drx397xD_state *s, | |||
| 305 | u32 f_tuner, f = fep->frequency; | 305 | u32 f_tuner, f = fep->frequency; |
| 306 | int rc; | 306 | int rc; |
| 307 | 307 | ||
| 308 | pr_debug("%s\n", __FUNCTION__); | 308 | pr_debug("%s\n", __func__); |
| 309 | 309 | ||
| 310 | if ((f > s->frontend.ops.tuner_ops.info.frequency_max) || | 310 | if ((f > s->frontend.ops.tuner_ops.info.frequency_max) || |
| 311 | (f < s->frontend.ops.tuner_ops.info.frequency_min)) | 311 | (f < s->frontend.ops.tuner_ops.info.frequency_min)) |
| @@ -325,7 +325,7 @@ static int PLL_Set(struct drx397xD_state *s, | |||
| 325 | return rc; | 325 | return rc; |
| 326 | 326 | ||
| 327 | *df_tuner = f_tuner - f; | 327 | *df_tuner = f_tuner - f; |
| 328 | pr_debug("%s requested %d [Hz] tuner %d [Hz]\n", __FUNCTION__, f, | 328 | pr_debug("%s requested %d [Hz] tuner %d [Hz]\n", __func__, f, |
| 329 | f_tuner); | 329 | f_tuner); |
| 330 | 330 | ||
| 331 | return 0; | 331 | return 0; |
| @@ -340,7 +340,7 @@ static int SC_WaitForReady(struct drx397xD_state *s) | |||
| 340 | int cnt = 1000; | 340 | int cnt = 1000; |
| 341 | int rc; | 341 | int rc; |
| 342 | 342 | ||
| 343 | pr_debug("%s\n", __FUNCTION__); | 343 | pr_debug("%s\n", __func__); |
| 344 | 344 | ||
| 345 | while (cnt--) { | 345 | while (cnt--) { |
| 346 | rc = RD16(s, 0x820043); | 346 | rc = RD16(s, 0x820043); |
| @@ -354,7 +354,7 @@ static int SC_SendCommand(struct drx397xD_state *s, int cmd) | |||
| 354 | { | 354 | { |
| 355 | int rc; | 355 | int rc; |
| 356 | 356 | ||
| 357 | pr_debug("%s\n", __FUNCTION__); | 357 | pr_debug("%s\n", __func__); |
| 358 | 358 | ||
| 359 | WR16(s, 0x820043, cmd); | 359 | WR16(s, 0x820043, cmd); |
| 360 | SC_WaitForReady(s); | 360 | SC_WaitForReady(s); |
| @@ -368,7 +368,7 @@ static int HI_Command(struct drx397xD_state *s, u16 cmd) | |||
| 368 | { | 368 | { |
| 369 | int rc, cnt = 1000; | 369 | int rc, cnt = 1000; |
| 370 | 370 | ||
| 371 | pr_debug("%s\n", __FUNCTION__); | 371 | pr_debug("%s\n", __func__); |
| 372 | 372 | ||
| 373 | rc = WR16(s, 0x420032, cmd); | 373 | rc = WR16(s, 0x420032, cmd); |
| 374 | if (rc < 0) | 374 | if (rc < 0) |
| @@ -389,7 +389,7 @@ static int HI_Command(struct drx397xD_state *s, u16 cmd) | |||
| 389 | static int HI_CfgCommand(struct drx397xD_state *s) | 389 | static int HI_CfgCommand(struct drx397xD_state *s) |
| 390 | { | 390 | { |
| 391 | 391 | ||
| 392 | pr_debug("%s\n", __FUNCTION__); | 392 | pr_debug("%s\n", __func__); |
| 393 | 393 | ||
| 394 | WR16(s, 0x420033, 0x3973); | 394 | WR16(s, 0x420033, 0x3973); |
| 395 | WR16(s, 0x420034, s->config.w50); // code 4, log 4 | 395 | WR16(s, 0x420034, s->config.w50); // code 4, log 4 |
| @@ -419,7 +419,7 @@ static int SetCfgIfAgc(struct drx397xD_state *s, struct drx397xD_CfgIfAgc *agc) | |||
| 419 | u16 w0C = agc->w0C; | 419 | u16 w0C = agc->w0C; |
| 420 | int quot, rem, i, rc = -EINVAL; | 420 | int quot, rem, i, rc = -EINVAL; |
| 421 | 421 | ||
| 422 | pr_debug("%s\n", __FUNCTION__); | 422 | pr_debug("%s\n", __func__); |
| 423 | 423 | ||
| 424 | if (agc->w04 > 0x3ff) | 424 | if (agc->w04 > 0x3ff) |
| 425 | goto exit_rc; | 425 | goto exit_rc; |
| @@ -478,7 +478,7 @@ static int SetCfgRfAgc(struct drx397xD_state *s, struct drx397xD_CfgRfAgc *agc) | |||
| 478 | u16 w06 = agc->w06; | 478 | u16 w06 = agc->w06; |
| 479 | int rc = -1; | 479 | int rc = -1; |
| 480 | 480 | ||
| 481 | pr_debug("%s %d 0x%x 0x%x\n", __FUNCTION__, agc->d00, w04, w06); | 481 | pr_debug("%s %d 0x%x 0x%x\n", __func__, agc->d00, w04, w06); |
| 482 | 482 | ||
| 483 | if (w04 > 0x3ff) | 483 | if (w04 > 0x3ff) |
| 484 | goto exit_rc; | 484 | goto exit_rc; |
| @@ -554,7 +554,7 @@ static int CorrectSysClockDeviation(struct drx397xD_state *s) | |||
| 554 | int lockstat; | 554 | int lockstat; |
| 555 | u32 clk, clk_limit; | 555 | u32 clk, clk_limit; |
| 556 | 556 | ||
| 557 | pr_debug("%s\n", __FUNCTION__); | 557 | pr_debug("%s\n", __func__); |
| 558 | 558 | ||
| 559 | if (s->config.d5C == 0) { | 559 | if (s->config.d5C == 0) { |
| 560 | EXIT_RC(WR16(s, 0x08200e8, 0x010)); | 560 | EXIT_RC(WR16(s, 0x08200e8, 0x010)); |
| @@ -598,7 +598,7 @@ static int CorrectSysClockDeviation(struct drx397xD_state *s) | |||
| 598 | 598 | ||
| 599 | if (clk - s->config.f_osc * 1000 + clk_limit <= 2 * clk_limit) { | 599 | if (clk - s->config.f_osc * 1000 + clk_limit <= 2 * clk_limit) { |
| 600 | s->f_osc = clk; | 600 | s->f_osc = clk; |
| 601 | pr_debug("%s: osc %d %d [Hz]\n", __FUNCTION__, | 601 | pr_debug("%s: osc %d %d [Hz]\n", __func__, |
| 602 | s->config.f_osc * 1000, clk - s->config.f_osc * 1000); | 602 | s->config.f_osc * 1000, clk - s->config.f_osc * 1000); |
| 603 | } | 603 | } |
| 604 | rc = WR16(s, 0x08200e8, 0); | 604 | rc = WR16(s, 0x08200e8, 0); |
| @@ -610,7 +610,7 @@ static int ConfigureMPEGOutput(struct drx397xD_state *s, int type) | |||
| 610 | { | 610 | { |
| 611 | int rc, si, bp; | 611 | int rc, si, bp; |
| 612 | 612 | ||
| 613 | pr_debug("%s\n", __FUNCTION__); | 613 | pr_debug("%s\n", __func__); |
| 614 | 614 | ||
| 615 | si = s->config.wA0; | 615 | si = s->config.wA0; |
| 616 | if (s->config.w98 == 0) { | 616 | if (s->config.w98 == 0) { |
| @@ -646,7 +646,7 @@ static int drx_tune(struct drx397xD_state *s, | |||
| 646 | 646 | ||
| 647 | int rc, df_tuner; | 647 | int rc, df_tuner; |
| 648 | int a, b, c, d; | 648 | int a, b, c, d; |
| 649 | pr_debug("%s %d\n", __FUNCTION__, s->config.d60); | 649 | pr_debug("%s %d\n", __func__, s->config.d60); |
| 650 | 650 | ||
| 651 | if (s->config.d60 != 2) | 651 | if (s->config.d60 != 2) |
| 652 | goto set_tuner; | 652 | goto set_tuner; |
| @@ -1082,7 +1082,7 @@ static int drx397x_init(struct dvb_frontend *fe) | |||
| 1082 | struct drx397xD_state *s = fe->demodulator_priv; | 1082 | struct drx397xD_state *s = fe->demodulator_priv; |
| 1083 | int rc; | 1083 | int rc; |
| 1084 | 1084 | ||
| 1085 | pr_debug("%s\n", __FUNCTION__); | 1085 | pr_debug("%s\n", __func__); |
| 1086 | 1086 | ||
| 1087 | s->config.rfagc.d00 = 2; /* 0x7c */ | 1087 | s->config.rfagc.d00 = 2; /* 0x7c */ |
| 1088 | s->config.rfagc.w04 = 0; | 1088 | s->config.rfagc.w04 = 0; |
diff --git a/drivers/media/dvb/frontends/drx397xD.h b/drivers/media/dvb/frontends/drx397xD.h index ddc7a07971b7..2ad1ea0ccfb0 100644 --- a/drivers/media/dvb/frontends/drx397xD.h +++ b/drivers/media/dvb/frontends/drx397xD.h | |||
| @@ -122,7 +122,7 @@ extern struct dvb_frontend* drx397xD_attach(const struct drx397xD_config *config | |||
| 122 | static inline struct dvb_frontend* drx397xD_attach(const struct drx397xD_config *config, | 122 | static inline struct dvb_frontend* drx397xD_attach(const struct drx397xD_config *config, |
| 123 | struct i2c_adapter *i2c) | 123 | struct i2c_adapter *i2c) |
| 124 | { | 124 | { |
| 125 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | 125 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 126 | return NULL; | 126 | return NULL; |
| 127 | } | 127 | } |
| 128 | #endif /* CONFIG_DVB_DRX397XD */ | 128 | #endif /* CONFIG_DVB_DRX397XD */ |
