aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-xc2028.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r--drivers/media/video/tuner-xc2028.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index 098a9956a2bc..62b5de231e0d 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -135,7 +135,7 @@ static unsigned int xc2028_get_reg(struct xc2028_data *priv, u16 reg, u16 *val)
135 unsigned char buf[2]; 135 unsigned char buf[2];
136 unsigned char ibuf[2]; 136 unsigned char ibuf[2];
137 137
138 tuner_dbg("%s %04x called\n", __FUNCTION__, reg); 138 tuner_dbg("%s %04x called\n", __func__, reg);
139 139
140 buf[0] = reg >> 8; 140 buf[0] = reg >> 8;
141 buf[1] = (unsigned char) reg; 141 buf[1] = (unsigned char) reg;
@@ -260,7 +260,7 @@ static int load_all_firmwares(struct dvb_frontend *fe)
260 char name[33]; 260 char name[33];
261 char *fname; 261 char *fname;
262 262
263 tuner_dbg("%s called\n", __FUNCTION__); 263 tuner_dbg("%s called\n", __func__);
264 264
265 if (!firmware_name[0]) 265 if (!firmware_name[0])
266 fname = priv->ctrl.fname; 266 fname = priv->ctrl.fname;
@@ -405,7 +405,7 @@ static int seek_firmware(struct dvb_frontend *fe, unsigned int type,
405 int i, best_i = -1, best_nr_matches = 0; 405 int i, best_i = -1, best_nr_matches = 0;
406 unsigned int ign_firm_type_mask = 0; 406 unsigned int ign_firm_type_mask = 0;
407 407
408 tuner_dbg("%s called, want type=", __FUNCTION__); 408 tuner_dbg("%s called, want type=", __func__);
409 if (debug) { 409 if (debug) {
410 dump_firm_type(type); 410 dump_firm_type(type);
411 printk("(%x), id %016llx.\n", type, (unsigned long long)*id); 411 printk("(%x), id %016llx.\n", type, (unsigned long long)*id);
@@ -491,7 +491,7 @@ static int load_firmware(struct dvb_frontend *fe, unsigned int type,
491 int pos, rc; 491 int pos, rc;
492 unsigned char *p, *endp, buf[priv->ctrl.max_len]; 492 unsigned char *p, *endp, buf[priv->ctrl.max_len];
493 493
494 tuner_dbg("%s called\n", __FUNCTION__); 494 tuner_dbg("%s called\n", __func__);
495 495
496 pos = seek_firmware(fe, type, id); 496 pos = seek_firmware(fe, type, id);
497 if (pos < 0) 497 if (pos < 0)
@@ -594,7 +594,7 @@ static int load_scode(struct dvb_frontend *fe, unsigned int type,
594 int pos, rc; 594 int pos, rc;
595 unsigned char *p; 595 unsigned char *p;
596 596
597 tuner_dbg("%s called\n", __FUNCTION__); 597 tuner_dbg("%s called\n", __func__);
598 598
599 if (!int_freq) { 599 if (!int_freq) {
600 pos = seek_firmware(fe, type, id); 600 pos = seek_firmware(fe, type, id);
@@ -658,7 +658,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
658 u16 version, hwmodel; 658 u16 version, hwmodel;
659 v4l2_std_id std0; 659 v4l2_std_id std0;
660 660
661 tuner_dbg("%s called\n", __FUNCTION__); 661 tuner_dbg("%s called\n", __func__);
662 662
663 if (!priv->firm) { 663 if (!priv->firm) {
664 if (!priv->ctrl.fname) { 664 if (!priv->ctrl.fname) {
@@ -832,7 +832,7 @@ static int xc2028_signal(struct dvb_frontend *fe, u16 *strength)
832 u16 frq_lock, signal = 0; 832 u16 frq_lock, signal = 0;
833 int rc; 833 int rc;
834 834
835 tuner_dbg("%s called\n", __FUNCTION__); 835 tuner_dbg("%s called\n", __func__);
836 836
837 mutex_lock(&priv->lock); 837 mutex_lock(&priv->lock);
838 838
@@ -869,7 +869,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
869 unsigned char buf[4]; 869 unsigned char buf[4];
870 u32 div, offset = 0; 870 u32 div, offset = 0;
871 871
872 tuner_dbg("%s called\n", __FUNCTION__); 872 tuner_dbg("%s called\n", __func__);
873 873
874 mutex_lock(&priv->lock); 874 mutex_lock(&priv->lock);
875 875
@@ -952,7 +952,7 @@ static int xc2028_set_analog_freq(struct dvb_frontend *fe,
952 struct xc2028_data *priv = fe->tuner_priv; 952 struct xc2028_data *priv = fe->tuner_priv;
953 unsigned int type=0; 953 unsigned int type=0;
954 954
955 tuner_dbg("%s called\n", __FUNCTION__); 955 tuner_dbg("%s called\n", __func__);
956 956
957 if (p->mode == V4L2_TUNER_RADIO) { 957 if (p->mode == V4L2_TUNER_RADIO) {
958 type |= FM; 958 type |= FM;
@@ -985,7 +985,7 @@ static int xc2028_set_params(struct dvb_frontend *fe,
985 fe_bandwidth_t bw = BANDWIDTH_8_MHZ; 985 fe_bandwidth_t bw = BANDWIDTH_8_MHZ;
986 u16 demod = 0; 986 u16 demod = 0;
987 987
988 tuner_dbg("%s called\n", __FUNCTION__); 988 tuner_dbg("%s called\n", __func__);
989 989
990 if (priv->ctrl.d2633) 990 if (priv->ctrl.d2633)
991 type |= D2633; 991 type |= D2633;
@@ -1055,7 +1055,7 @@ static int xc2028_sleep(struct dvb_frontend *fe)
1055 struct xc2028_data *priv = fe->tuner_priv; 1055 struct xc2028_data *priv = fe->tuner_priv;
1056 int rc = 0; 1056 int rc = 0;
1057 1057
1058 tuner_dbg("%s called\n", __FUNCTION__); 1058 tuner_dbg("%s called\n", __func__);
1059 1059
1060 mutex_lock(&priv->lock); 1060 mutex_lock(&priv->lock);
1061 1061
@@ -1076,7 +1076,7 @@ static int xc2028_dvb_release(struct dvb_frontend *fe)
1076{ 1076{
1077 struct xc2028_data *priv = fe->tuner_priv; 1077 struct xc2028_data *priv = fe->tuner_priv;
1078 1078
1079 tuner_dbg("%s called\n", __FUNCTION__); 1079 tuner_dbg("%s called\n", __func__);
1080 1080
1081 mutex_lock(&xc2028_list_mutex); 1081 mutex_lock(&xc2028_list_mutex);
1082 1082
@@ -1101,7 +1101,7 @@ static int xc2028_get_frequency(struct dvb_frontend *fe, u32 *frequency)
1101{ 1101{
1102 struct xc2028_data *priv = fe->tuner_priv; 1102 struct xc2028_data *priv = fe->tuner_priv;
1103 1103
1104 tuner_dbg("%s called\n", __FUNCTION__); 1104 tuner_dbg("%s called\n", __func__);
1105 1105
1106 *frequency = priv->frequency; 1106 *frequency = priv->frequency;
1107 1107
@@ -1114,7 +1114,7 @@ static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg)
1114 struct xc2028_ctrl *p = priv_cfg; 1114 struct xc2028_ctrl *p = priv_cfg;
1115 int rc = 0; 1115 int rc = 0;
1116 1116
1117 tuner_dbg("%s called\n", __FUNCTION__); 1117 tuner_dbg("%s called\n", __func__);
1118 1118
1119 mutex_lock(&priv->lock); 1119 mutex_lock(&priv->lock);
1120 1120