diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-07-30 20:20:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-30 20:20:18 -0400 |
commit | a97a6f10771b90235b33c13a6db9279237a08422 (patch) | |
tree | 60f73c13805d3e9968ac734960505ab081173945 /drivers/net/irda/via-ircc.c | |
parent | 1fa98174ba980b2826edd1e4632a17916dfdb4fa (diff) |
irda: replace __FUNCTION__ with __func__
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/via-ircc.c')
-rw-r--r-- | drivers/net/irda/via-ircc.c | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/drivers/net/irda/via-ircc.c b/drivers/net/irda/via-ircc.c index 04ad3573b159..84e609ea5fbb 100644 --- a/drivers/net/irda/via-ircc.c +++ b/drivers/net/irda/via-ircc.c | |||
@@ -152,12 +152,12 @@ static int __init via_ircc_init(void) | |||
152 | { | 152 | { |
153 | int rc; | 153 | int rc; |
154 | 154 | ||
155 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 155 | IRDA_DEBUG(3, "%s()\n", __func__); |
156 | 156 | ||
157 | rc = pci_register_driver(&via_driver); | 157 | rc = pci_register_driver(&via_driver); |
158 | if (rc < 0) { | 158 | if (rc < 0) { |
159 | IRDA_DEBUG(0, "%s(): error rc = %d, returning -ENODEV...\n", | 159 | IRDA_DEBUG(0, "%s(): error rc = %d, returning -ENODEV...\n", |
160 | __FUNCTION__, rc); | 160 | __func__, rc); |
161 | return -ENODEV; | 161 | return -ENODEV; |
162 | } | 162 | } |
163 | return 0; | 163 | return 0; |
@@ -170,11 +170,11 @@ static int __devinit via_init_one (struct pci_dev *pcidev, const struct pci_devi | |||
170 | u16 Chipset,FirDRQ1,FirDRQ0,FirIRQ,FirIOBase; | 170 | u16 Chipset,FirDRQ1,FirDRQ0,FirIRQ,FirIOBase; |
171 | chipio_t info; | 171 | chipio_t info; |
172 | 172 | ||
173 | IRDA_DEBUG(2, "%s(): Device ID=(0X%X)\n", __FUNCTION__, id->device); | 173 | IRDA_DEBUG(2, "%s(): Device ID=(0X%X)\n", __func__, id->device); |
174 | 174 | ||
175 | rc = pci_enable_device (pcidev); | 175 | rc = pci_enable_device (pcidev); |
176 | if (rc) { | 176 | if (rc) { |
177 | IRDA_DEBUG(0, "%s(): error rc = %d\n", __FUNCTION__, rc); | 177 | IRDA_DEBUG(0, "%s(): error rc = %d\n", __func__, rc); |
178 | return -ENODEV; | 178 | return -ENODEV; |
179 | } | 179 | } |
180 | 180 | ||
@@ -185,7 +185,7 @@ static int __devinit via_init_one (struct pci_dev *pcidev, const struct pci_devi | |||
185 | Chipset=0x3076; | 185 | Chipset=0x3076; |
186 | 186 | ||
187 | if (Chipset==0x3076) { | 187 | if (Chipset==0x3076) { |
188 | IRDA_DEBUG(2, "%s(): Chipset = 3076\n", __FUNCTION__); | 188 | IRDA_DEBUG(2, "%s(): Chipset = 3076\n", __func__); |
189 | 189 | ||
190 | WriteLPCReg(7,0x0c ); | 190 | WriteLPCReg(7,0x0c ); |
191 | temp=ReadLPCReg(0x30);//check if BIOS Enable Fir | 191 | temp=ReadLPCReg(0x30);//check if BIOS Enable Fir |
@@ -222,7 +222,7 @@ static int __devinit via_init_one (struct pci_dev *pcidev, const struct pci_devi | |||
222 | } else | 222 | } else |
223 | rc = -ENODEV; //IR not turn on | 223 | rc = -ENODEV; //IR not turn on |
224 | } else { //Not VT1211 | 224 | } else { //Not VT1211 |
225 | IRDA_DEBUG(2, "%s(): Chipset = 3096\n", __FUNCTION__); | 225 | IRDA_DEBUG(2, "%s(): Chipset = 3096\n", __func__); |
226 | 226 | ||
227 | pci_read_config_byte(pcidev,0x67,&bTmp);//check if BIOS Enable Fir | 227 | pci_read_config_byte(pcidev,0x67,&bTmp);//check if BIOS Enable Fir |
228 | if((bTmp&0x01)==1) { // BIOS enable FIR | 228 | if((bTmp&0x01)==1) { // BIOS enable FIR |
@@ -262,7 +262,7 @@ static int __devinit via_init_one (struct pci_dev *pcidev, const struct pci_devi | |||
262 | rc = -ENODEV; //IR not turn on !!!!! | 262 | rc = -ENODEV; //IR not turn on !!!!! |
263 | }//Not VT1211 | 263 | }//Not VT1211 |
264 | 264 | ||
265 | IRDA_DEBUG(2, "%s(): End - rc = %d\n", __FUNCTION__, rc); | 265 | IRDA_DEBUG(2, "%s(): End - rc = %d\n", __func__, rc); |
266 | return rc; | 266 | return rc; |
267 | } | 267 | } |
268 | 268 | ||
@@ -276,7 +276,7 @@ static void via_ircc_clean(void) | |||
276 | { | 276 | { |
277 | int i; | 277 | int i; |
278 | 278 | ||
279 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 279 | IRDA_DEBUG(3, "%s()\n", __func__); |
280 | 280 | ||
281 | for (i=0; i < ARRAY_SIZE(dev_self); i++) { | 281 | for (i=0; i < ARRAY_SIZE(dev_self); i++) { |
282 | if (dev_self[i]) | 282 | if (dev_self[i]) |
@@ -286,7 +286,7 @@ static void via_ircc_clean(void) | |||
286 | 286 | ||
287 | static void __devexit via_remove_one (struct pci_dev *pdev) | 287 | static void __devexit via_remove_one (struct pci_dev *pdev) |
288 | { | 288 | { |
289 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 289 | IRDA_DEBUG(3, "%s()\n", __func__); |
290 | 290 | ||
291 | /* FIXME : This is ugly. We should use pci_get_drvdata(pdev); | 291 | /* FIXME : This is ugly. We should use pci_get_drvdata(pdev); |
292 | * to get our driver instance and call directly via_ircc_close(). | 292 | * to get our driver instance and call directly via_ircc_close(). |
@@ -301,7 +301,7 @@ static void __devexit via_remove_one (struct pci_dev *pdev) | |||
301 | 301 | ||
302 | static void __exit via_ircc_cleanup(void) | 302 | static void __exit via_ircc_cleanup(void) |
303 | { | 303 | { |
304 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 304 | IRDA_DEBUG(3, "%s()\n", __func__); |
305 | 305 | ||
306 | /* FIXME : This should be redundant, as pci_unregister_driver() | 306 | /* FIXME : This should be redundant, as pci_unregister_driver() |
307 | * should call via_remove_one() on each device. | 307 | * should call via_remove_one() on each device. |
@@ -324,7 +324,7 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id) | |||
324 | struct via_ircc_cb *self; | 324 | struct via_ircc_cb *self; |
325 | int err; | 325 | int err; |
326 | 326 | ||
327 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 327 | IRDA_DEBUG(3, "%s()\n", __func__); |
328 | 328 | ||
329 | if (i >= ARRAY_SIZE(dev_self)) | 329 | if (i >= ARRAY_SIZE(dev_self)) |
330 | return -ENOMEM; | 330 | return -ENOMEM; |
@@ -360,7 +360,7 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id) | |||
360 | /* Reserve the ioports that we need */ | 360 | /* Reserve the ioports that we need */ |
361 | if (!request_region(self->io.fir_base, self->io.fir_ext, driver_name)) { | 361 | if (!request_region(self->io.fir_base, self->io.fir_ext, driver_name)) { |
362 | IRDA_DEBUG(0, "%s(), can't get iobase of 0x%03x\n", | 362 | IRDA_DEBUG(0, "%s(), can't get iobase of 0x%03x\n", |
363 | __FUNCTION__, self->io.fir_base); | 363 | __func__, self->io.fir_base); |
364 | err = -ENODEV; | 364 | err = -ENODEV; |
365 | goto err_out1; | 365 | goto err_out1; |
366 | } | 366 | } |
@@ -471,7 +471,7 @@ static int via_ircc_close(struct via_ircc_cb *self) | |||
471 | { | 471 | { |
472 | int iobase; | 472 | int iobase; |
473 | 473 | ||
474 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 474 | IRDA_DEBUG(3, "%s()\n", __func__); |
475 | 475 | ||
476 | IRDA_ASSERT(self != NULL, return -1;); | 476 | IRDA_ASSERT(self != NULL, return -1;); |
477 | 477 | ||
@@ -483,7 +483,7 @@ static int via_ircc_close(struct via_ircc_cb *self) | |||
483 | 483 | ||
484 | /* Release the PORT that this driver is using */ | 484 | /* Release the PORT that this driver is using */ |
485 | IRDA_DEBUG(2, "%s(), Releasing Region %03x\n", | 485 | IRDA_DEBUG(2, "%s(), Releasing Region %03x\n", |
486 | __FUNCTION__, self->io.fir_base); | 486 | __func__, self->io.fir_base); |
487 | release_region(self->io.fir_base, self->io.fir_ext); | 487 | release_region(self->io.fir_base, self->io.fir_ext); |
488 | if (self->tx_buff.head) | 488 | if (self->tx_buff.head) |
489 | dma_free_coherent(NULL, self->tx_buff.truesize, | 489 | dma_free_coherent(NULL, self->tx_buff.truesize, |
@@ -509,7 +509,7 @@ static void via_hw_init(struct via_ircc_cb *self) | |||
509 | { | 509 | { |
510 | int iobase = self->io.fir_base; | 510 | int iobase = self->io.fir_base; |
511 | 511 | ||
512 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 512 | IRDA_DEBUG(3, "%s()\n", __func__); |
513 | 513 | ||
514 | SetMaxRxPacketSize(iobase, 0x0fff); //set to max:4095 | 514 | SetMaxRxPacketSize(iobase, 0x0fff); //set to max:4095 |
515 | // FIFO Init | 515 | // FIFO Init |
@@ -582,7 +582,7 @@ static void via_ircc_change_dongle_speed(int iobase, int speed, | |||
582 | speed = speed; | 582 | speed = speed; |
583 | 583 | ||
584 | IRDA_DEBUG(1, "%s(): change_dongle_speed to %d for 0x%x, %d\n", | 584 | IRDA_DEBUG(1, "%s(): change_dongle_speed to %d for 0x%x, %d\n", |
585 | __FUNCTION__, speed, iobase, dongle_id); | 585 | __func__, speed, iobase, dongle_id); |
586 | 586 | ||
587 | switch (dongle_id) { | 587 | switch (dongle_id) { |
588 | 588 | ||
@@ -671,7 +671,7 @@ static void via_ircc_change_dongle_speed(int iobase, int speed, | |||
671 | 671 | ||
672 | case 0x11: /* Temic TFDS4500 */ | 672 | case 0x11: /* Temic TFDS4500 */ |
673 | 673 | ||
674 | IRDA_DEBUG(2, "%s: Temic TFDS4500: One RX pin, TX normal, RX inverted.\n", __FUNCTION__); | 674 | IRDA_DEBUG(2, "%s: Temic TFDS4500: One RX pin, TX normal, RX inverted.\n", __func__); |
675 | 675 | ||
676 | UseOneRX(iobase, ON); //use ONE RX....RX1 | 676 | UseOneRX(iobase, ON); //use ONE RX....RX1 |
677 | InvertTX(iobase, OFF); | 677 | InvertTX(iobase, OFF); |
@@ -689,7 +689,7 @@ static void via_ircc_change_dongle_speed(int iobase, int speed, | |||
689 | SlowIRRXLowActive(iobase, OFF); | 689 | SlowIRRXLowActive(iobase, OFF); |
690 | 690 | ||
691 | } else{ | 691 | } else{ |
692 | IRDA_DEBUG(0, "%s: Warning: TFDS4500 not running in SIR mode !\n", __FUNCTION__); | 692 | IRDA_DEBUG(0, "%s: Warning: TFDS4500 not running in SIR mode !\n", __func__); |
693 | } | 693 | } |
694 | break; | 694 | break; |
695 | 695 | ||
@@ -707,7 +707,7 @@ static void via_ircc_change_dongle_speed(int iobase, int speed, | |||
707 | 707 | ||
708 | default: | 708 | default: |
709 | IRDA_ERROR("%s: Error: dongle_id %d unsupported !\n", | 709 | IRDA_ERROR("%s: Error: dongle_id %d unsupported !\n", |
710 | __FUNCTION__, dongle_id); | 710 | __func__, dongle_id); |
711 | } | 711 | } |
712 | } | 712 | } |
713 | 713 | ||
@@ -726,7 +726,7 @@ static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 speed) | |||
726 | iobase = self->io.fir_base; | 726 | iobase = self->io.fir_base; |
727 | /* Update accounting for new speed */ | 727 | /* Update accounting for new speed */ |
728 | self->io.speed = speed; | 728 | self->io.speed = speed; |
729 | IRDA_DEBUG(1, "%s: change_speed to %d bps.\n", __FUNCTION__, speed); | 729 | IRDA_DEBUG(1, "%s: change_speed to %d bps.\n", __func__, speed); |
730 | 730 | ||
731 | WriteReg(iobase, I_ST_CT_0, 0x0); | 731 | WriteReg(iobase, I_ST_CT_0, 0x0); |
732 | 732 | ||
@@ -957,7 +957,7 @@ static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase) | |||
957 | self->tx_buff.head) + self->tx_buff_dma, | 957 | self->tx_buff.head) + self->tx_buff_dma, |
958 | self->tx_fifo.queue[self->tx_fifo.ptr].len, DMA_TX_MODE); | 958 | self->tx_fifo.queue[self->tx_fifo.ptr].len, DMA_TX_MODE); |
959 | IRDA_DEBUG(1, "%s: tx_fifo.ptr=%x,len=%x,tx_fifo.len=%x..\n", | 959 | IRDA_DEBUG(1, "%s: tx_fifo.ptr=%x,len=%x,tx_fifo.len=%x..\n", |
960 | __FUNCTION__, self->tx_fifo.ptr, | 960 | __func__, self->tx_fifo.ptr, |
961 | self->tx_fifo.queue[self->tx_fifo.ptr].len, | 961 | self->tx_fifo.queue[self->tx_fifo.ptr].len, |
962 | self->tx_fifo.len); | 962 | self->tx_fifo.len); |
963 | 963 | ||
@@ -981,7 +981,7 @@ static int via_ircc_dma_xmit_complete(struct via_ircc_cb *self) | |||
981 | int ret = TRUE; | 981 | int ret = TRUE; |
982 | u8 Tx_status; | 982 | u8 Tx_status; |
983 | 983 | ||
984 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 984 | IRDA_DEBUG(3, "%s()\n", __func__); |
985 | 985 | ||
986 | iobase = self->io.fir_base; | 986 | iobase = self->io.fir_base; |
987 | /* Disable DMA */ | 987 | /* Disable DMA */ |
@@ -1014,7 +1014,7 @@ static int via_ircc_dma_xmit_complete(struct via_ircc_cb *self) | |||
1014 | } | 1014 | } |
1015 | IRDA_DEBUG(1, | 1015 | IRDA_DEBUG(1, |
1016 | "%s: tx_fifo.len=%x ,tx_fifo.ptr=%x,tx_fifo.free=%x...\n", | 1016 | "%s: tx_fifo.len=%x ,tx_fifo.ptr=%x,tx_fifo.free=%x...\n", |
1017 | __FUNCTION__, | 1017 | __func__, |
1018 | self->tx_fifo.len, self->tx_fifo.ptr, self->tx_fifo.free); | 1018 | self->tx_fifo.len, self->tx_fifo.ptr, self->tx_fifo.free); |
1019 | /* F01_S | 1019 | /* F01_S |
1020 | // Any frames to be sent back-to-back? | 1020 | // Any frames to be sent back-to-back? |
@@ -1050,7 +1050,7 @@ static int via_ircc_dma_receive(struct via_ircc_cb *self) | |||
1050 | 1050 | ||
1051 | iobase = self->io.fir_base; | 1051 | iobase = self->io.fir_base; |
1052 | 1052 | ||
1053 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 1053 | IRDA_DEBUG(3, "%s()\n", __func__); |
1054 | 1054 | ||
1055 | self->tx_fifo.len = self->tx_fifo.ptr = self->tx_fifo.free = 0; | 1055 | self->tx_fifo.len = self->tx_fifo.ptr = self->tx_fifo.free = 0; |
1056 | self->tx_fifo.tail = self->tx_buff.head; | 1056 | self->tx_fifo.tail = self->tx_buff.head; |
@@ -1134,13 +1134,13 @@ static int via_ircc_dma_receive_complete(struct via_ircc_cb *self, | |||
1134 | return TRUE; //interrupt only, data maybe move by RxT | 1134 | return TRUE; //interrupt only, data maybe move by RxT |
1135 | if (((len - 4) < 2) || ((len - 4) > 2048)) { | 1135 | if (((len - 4) < 2) || ((len - 4) > 2048)) { |
1136 | IRDA_DEBUG(1, "%s(): Trouble:len=%x,CurCount=%x,LastCount=%x..\n", | 1136 | IRDA_DEBUG(1, "%s(): Trouble:len=%x,CurCount=%x,LastCount=%x..\n", |
1137 | __FUNCTION__, len, RxCurCount(iobase, self), | 1137 | __func__, len, RxCurCount(iobase, self), |
1138 | self->RxLastCount); | 1138 | self->RxLastCount); |
1139 | hwreset(self); | 1139 | hwreset(self); |
1140 | return FALSE; | 1140 | return FALSE; |
1141 | } | 1141 | } |
1142 | IRDA_DEBUG(2, "%s(): fifo.len=%x,len=%x,CurCount=%x..\n", | 1142 | IRDA_DEBUG(2, "%s(): fifo.len=%x,len=%x,CurCount=%x..\n", |
1143 | __FUNCTION__, | 1143 | __func__, |
1144 | st_fifo->len, len - 4, RxCurCount(iobase, self)); | 1144 | st_fifo->len, len - 4, RxCurCount(iobase, self)); |
1145 | 1145 | ||
1146 | st_fifo->entries[st_fifo->tail].status = status; | 1146 | st_fifo->entries[st_fifo->tail].status = status; |
@@ -1187,7 +1187,7 @@ F01_E */ | |||
1187 | skb_put(skb, len - 4); | 1187 | skb_put(skb, len - 4); |
1188 | 1188 | ||
1189 | skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4); | 1189 | skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4); |
1190 | IRDA_DEBUG(2, "%s(): len=%x.rx_buff=%p\n", __FUNCTION__, | 1190 | IRDA_DEBUG(2, "%s(): len=%x.rx_buff=%p\n", __func__, |
1191 | len - 4, self->rx_buff.data); | 1191 | len - 4, self->rx_buff.data); |
1192 | 1192 | ||
1193 | // Move to next frame | 1193 | // Move to next frame |
@@ -1217,7 +1217,7 @@ static int upload_rxdata(struct via_ircc_cb *self, int iobase) | |||
1217 | 1217 | ||
1218 | len = GetRecvByte(iobase, self); | 1218 | len = GetRecvByte(iobase, self); |
1219 | 1219 | ||
1220 | IRDA_DEBUG(2, "%s(): len=%x\n", __FUNCTION__, len); | 1220 | IRDA_DEBUG(2, "%s(): len=%x\n", __func__, len); |
1221 | 1221 | ||
1222 | if ((len - 4) < 2) { | 1222 | if ((len - 4) < 2) { |
1223 | self->stats.rx_dropped++; | 1223 | self->stats.rx_dropped++; |
@@ -1302,7 +1302,7 @@ static int RxTimerHandler(struct via_ircc_cb *self, int iobase) | |||
1302 | skb_put(skb, len - 4); | 1302 | skb_put(skb, len - 4); |
1303 | skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4); | 1303 | skb_copy_to_linear_data(skb, self->rx_buff.data, len - 4); |
1304 | 1304 | ||
1305 | IRDA_DEBUG(2, "%s(): len=%x.head=%x\n", __FUNCTION__, | 1305 | IRDA_DEBUG(2, "%s(): len=%x.head=%x\n", __func__, |
1306 | len - 4, st_fifo->head); | 1306 | len - 4, st_fifo->head); |
1307 | 1307 | ||
1308 | // Move to next frame | 1308 | // Move to next frame |
@@ -1318,7 +1318,7 @@ static int RxTimerHandler(struct via_ircc_cb *self, int iobase) | |||
1318 | 1318 | ||
1319 | IRDA_DEBUG(2, | 1319 | IRDA_DEBUG(2, |
1320 | "%s(): End of upload HostStatus=%x,RxStatus=%x\n", | 1320 | "%s(): End of upload HostStatus=%x,RxStatus=%x\n", |
1321 | __FUNCTION__, | 1321 | __func__, |
1322 | GetHostStatus(iobase), GetRXStatus(iobase)); | 1322 | GetHostStatus(iobase), GetRXStatus(iobase)); |
1323 | 1323 | ||
1324 | /* | 1324 | /* |
@@ -1358,7 +1358,7 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id) | |||
1358 | iHostIntType = GetHostStatus(iobase); | 1358 | iHostIntType = GetHostStatus(iobase); |
1359 | 1359 | ||
1360 | IRDA_DEBUG(4, "%s(): iHostIntType %02x: %s %s %s %02x\n", | 1360 | IRDA_DEBUG(4, "%s(): iHostIntType %02x: %s %s %s %02x\n", |
1361 | __FUNCTION__, iHostIntType, | 1361 | __func__, iHostIntType, |
1362 | (iHostIntType & 0x40) ? "Timer" : "", | 1362 | (iHostIntType & 0x40) ? "Timer" : "", |
1363 | (iHostIntType & 0x20) ? "Tx" : "", | 1363 | (iHostIntType & 0x20) ? "Tx" : "", |
1364 | (iHostIntType & 0x10) ? "Rx" : "", | 1364 | (iHostIntType & 0x10) ? "Rx" : "", |
@@ -1388,7 +1388,7 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id) | |||
1388 | iTxIntType = GetTXStatus(iobase); | 1388 | iTxIntType = GetTXStatus(iobase); |
1389 | 1389 | ||
1390 | IRDA_DEBUG(4, "%s(): iTxIntType %02x: %s %s %s %s\n", | 1390 | IRDA_DEBUG(4, "%s(): iTxIntType %02x: %s %s %s %s\n", |
1391 | __FUNCTION__, iTxIntType, | 1391 | __func__, iTxIntType, |
1392 | (iTxIntType & 0x08) ? "FIFO underr." : "", | 1392 | (iTxIntType & 0x08) ? "FIFO underr." : "", |
1393 | (iTxIntType & 0x04) ? "EOM" : "", | 1393 | (iTxIntType & 0x04) ? "EOM" : "", |
1394 | (iTxIntType & 0x02) ? "FIFO ready" : "", | 1394 | (iTxIntType & 0x02) ? "FIFO ready" : "", |
@@ -1412,7 +1412,7 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id) | |||
1412 | iRxIntType = GetRXStatus(iobase); | 1412 | iRxIntType = GetRXStatus(iobase); |
1413 | 1413 | ||
1414 | IRDA_DEBUG(4, "%s(): iRxIntType %02x: %s %s %s %s %s %s %s\n", | 1414 | IRDA_DEBUG(4, "%s(): iRxIntType %02x: %s %s %s %s %s %s %s\n", |
1415 | __FUNCTION__, iRxIntType, | 1415 | __func__, iRxIntType, |
1416 | (iRxIntType & 0x80) ? "PHY err." : "", | 1416 | (iRxIntType & 0x80) ? "PHY err." : "", |
1417 | (iRxIntType & 0x40) ? "CRC err" : "", | 1417 | (iRxIntType & 0x40) ? "CRC err" : "", |
1418 | (iRxIntType & 0x20) ? "FIFO overr." : "", | 1418 | (iRxIntType & 0x20) ? "FIFO overr." : "", |
@@ -1421,7 +1421,7 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id) | |||
1421 | (iRxIntType & 0x02) ? "RxMaxLen" : "", | 1421 | (iRxIntType & 0x02) ? "RxMaxLen" : "", |
1422 | (iRxIntType & 0x01) ? "SIR bad" : ""); | 1422 | (iRxIntType & 0x01) ? "SIR bad" : ""); |
1423 | if (!iRxIntType) | 1423 | if (!iRxIntType) |
1424 | IRDA_DEBUG(3, "%s(): RxIRQ =0\n", __FUNCTION__); | 1424 | IRDA_DEBUG(3, "%s(): RxIRQ =0\n", __func__); |
1425 | 1425 | ||
1426 | if (iRxIntType & 0x10) { | 1426 | if (iRxIntType & 0x10) { |
1427 | if (via_ircc_dma_receive_complete(self, iobase)) { | 1427 | if (via_ircc_dma_receive_complete(self, iobase)) { |
@@ -1431,7 +1431,7 @@ static irqreturn_t via_ircc_interrupt(int dummy, void *dev_id) | |||
1431 | } // No ERR | 1431 | } // No ERR |
1432 | else { //ERR | 1432 | else { //ERR |
1433 | IRDA_DEBUG(4, "%s(): RxIRQ ERR:iRxIntType=%x,HostIntType=%x,CurCount=%x,RxLastCount=%x_____\n", | 1433 | IRDA_DEBUG(4, "%s(): RxIRQ ERR:iRxIntType=%x,HostIntType=%x,CurCount=%x,RxLastCount=%x_____\n", |
1434 | __FUNCTION__, iRxIntType, iHostIntType, | 1434 | __func__, iRxIntType, iHostIntType, |
1435 | RxCurCount(iobase, self), | 1435 | RxCurCount(iobase, self), |
1436 | self->RxLastCount); | 1436 | self->RxLastCount); |
1437 | 1437 | ||
@@ -1456,7 +1456,7 @@ static void hwreset(struct via_ircc_cb *self) | |||
1456 | int iobase; | 1456 | int iobase; |
1457 | iobase = self->io.fir_base; | 1457 | iobase = self->io.fir_base; |
1458 | 1458 | ||
1459 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 1459 | IRDA_DEBUG(3, "%s()\n", __func__); |
1460 | 1460 | ||
1461 | ResetChip(iobase, 5); | 1461 | ResetChip(iobase, 5); |
1462 | EnableDMA(iobase, OFF); | 1462 | EnableDMA(iobase, OFF); |
@@ -1501,7 +1501,7 @@ static int via_ircc_is_receiving(struct via_ircc_cb *self) | |||
1501 | if (CkRxRecv(iobase, self)) | 1501 | if (CkRxRecv(iobase, self)) |
1502 | status = TRUE; | 1502 | status = TRUE; |
1503 | 1503 | ||
1504 | IRDA_DEBUG(2, "%s(): status=%x....\n", __FUNCTION__, status); | 1504 | IRDA_DEBUG(2, "%s(): status=%x....\n", __func__, status); |
1505 | 1505 | ||
1506 | return status; | 1506 | return status; |
1507 | } | 1507 | } |
@@ -1519,7 +1519,7 @@ static int via_ircc_net_open(struct net_device *dev) | |||
1519 | int iobase; | 1519 | int iobase; |
1520 | char hwname[32]; | 1520 | char hwname[32]; |
1521 | 1521 | ||
1522 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 1522 | IRDA_DEBUG(3, "%s()\n", __func__); |
1523 | 1523 | ||
1524 | IRDA_ASSERT(dev != NULL, return -1;); | 1524 | IRDA_ASSERT(dev != NULL, return -1;); |
1525 | self = (struct via_ircc_cb *) dev->priv; | 1525 | self = (struct via_ircc_cb *) dev->priv; |
@@ -1586,7 +1586,7 @@ static int via_ircc_net_close(struct net_device *dev) | |||
1586 | struct via_ircc_cb *self; | 1586 | struct via_ircc_cb *self; |
1587 | int iobase; | 1587 | int iobase; |
1588 | 1588 | ||
1589 | IRDA_DEBUG(3, "%s()\n", __FUNCTION__); | 1589 | IRDA_DEBUG(3, "%s()\n", __func__); |
1590 | 1590 | ||
1591 | IRDA_ASSERT(dev != NULL, return -1;); | 1591 | IRDA_ASSERT(dev != NULL, return -1;); |
1592 | self = (struct via_ircc_cb *) dev->priv; | 1592 | self = (struct via_ircc_cb *) dev->priv; |
@@ -1630,7 +1630,7 @@ static int via_ircc_net_ioctl(struct net_device *dev, struct ifreq *rq, | |||
1630 | IRDA_ASSERT(dev != NULL, return -1;); | 1630 | IRDA_ASSERT(dev != NULL, return -1;); |
1631 | self = dev->priv; | 1631 | self = dev->priv; |
1632 | IRDA_ASSERT(self != NULL, return -1;); | 1632 | IRDA_ASSERT(self != NULL, return -1;); |
1633 | IRDA_DEBUG(1, "%s(), %s, (cmd=0x%X)\n", __FUNCTION__, dev->name, | 1633 | IRDA_DEBUG(1, "%s(), %s, (cmd=0x%X)\n", __func__, dev->name, |
1634 | cmd); | 1634 | cmd); |
1635 | /* Disable interrupts & save flags */ | 1635 | /* Disable interrupts & save flags */ |
1636 | spin_lock_irqsave(&self->lock, flags); | 1636 | spin_lock_irqsave(&self->lock, flags); |