@@ -37,7 +37,7 @@ static void DAC1064_calcclock(CPMINFO unsigned int freq, unsigned int fmax, unsi
3737 unsigned int fvco ;
3838 unsigned int p ;
3939
40- DBG (__FUNCTION__ )
40+ DBG (__func__ )
4141
4242 /* only for devices older than G450 */
4343
@@ -83,7 +83,7 @@ static const unsigned char MGA1064_DAC[] = {
8383static void DAC1064_setpclk (WPMINFO unsigned long fout ) {
8484 unsigned int m , n , p ;
8585
86- DBG (__FUNCTION__ )
86+ DBG (__func__ )
8787
8888 DAC1064_calcclock (PMINFO fout , ACCESS_FBINFO (max_pixel_clock ), & m , & n , & p );
8989 ACCESS_FBINFO (hw ).DACclk [0 ] = m ;
@@ -95,7 +95,7 @@ static void DAC1064_setmclk(WPMINFO int oscinfo, unsigned long fmem) {
9595 u_int32_t mx ;
9696 struct matrox_hw_state * hw = & ACCESS_FBINFO (hw );
9797
98- DBG (__FUNCTION__ )
98+ DBG (__func__ )
9999
100100 if (ACCESS_FBINFO (devflags .noinit )) {
101101 /* read MCLK and give up... */
@@ -338,7 +338,7 @@ void DAC1064_global_restore(WPMINFO2) {
338338static int DAC1064_init_1 (WPMINFO struct my_timming * m ) {
339339 struct matrox_hw_state * hw = & ACCESS_FBINFO (hw );
340340
341- DBG (__FUNCTION__ )
341+ DBG (__func__ )
342342
343343 memcpy (hw -> DACreg , MGA1064_DAC , sizeof (MGA1064_DAC_regs ));
344344 switch (ACCESS_FBINFO (fbcon ).var .bits_per_pixel ) {
@@ -374,7 +374,7 @@ static int DAC1064_init_1(WPMINFO struct my_timming* m) {
374374static int DAC1064_init_2 (WPMINFO struct my_timming * m ) {
375375 struct matrox_hw_state * hw = & ACCESS_FBINFO (hw );
376376
377- DBG (__FUNCTION__ )
377+ DBG (__func__ )
378378
379379 if (ACCESS_FBINFO (fbcon ).var .bits_per_pixel > 16 ) { /* 256 entries */
380380 int i ;
@@ -418,7 +418,7 @@ static void DAC1064_restore_1(WPMINFO2) {
418418
419419 CRITFLAGS
420420
421- DBG (__FUNCTION__ )
421+ DBG (__func__ )
422422
423423 CRITBEGIN
424424
@@ -448,7 +448,7 @@ static void DAC1064_restore_2(WPMINFO2) {
448448 unsigned int i ;
449449#endif
450450
451- DBG (__FUNCTION__ )
451+ DBG (__func__ )
452452
453453#ifdef DEBUG
454454 dprintk (KERN_DEBUG "DAC1064regs " );
@@ -521,7 +521,7 @@ static struct matrox_altout g450out = {
521521static int MGA1064_init (WPMINFO struct my_timming * m ) {
522522 struct matrox_hw_state * hw = & ACCESS_FBINFO (hw );
523523
524- DBG (__FUNCTION__ )
524+ DBG (__func__ )
525525
526526 if (DAC1064_init_1 (PMINFO m )) return 1 ;
527527 if (matroxfb_vgaHWinit (PMINFO m )) return 1 ;
@@ -543,7 +543,7 @@ static int MGA1064_init(WPMINFO struct my_timming* m) {
543543static int MGAG100_init (WPMINFO struct my_timming * m ) {
544544 struct matrox_hw_state * hw = & ACCESS_FBINFO (hw );
545545
546- DBG (__FUNCTION__ )
546+ DBG (__func__ )
547547
548548 if (DAC1064_init_1 (PMINFO m )) return 1 ;
549549 hw -> MXoptionReg &= ~0x2000 ;
@@ -565,7 +565,7 @@ static int MGAG100_init(WPMINFO struct my_timming* m) {
565565#ifdef CONFIG_FB_MATROX_MYSTIQUE
566566static void MGA1064_ramdac_init (WPMINFO2 ) {
567567
568- DBG (__FUNCTION__ )
568+ DBG (__func__ )
569569
570570 /* ACCESS_FBINFO(features.DAC1064.vco_freq_min) = 120000; */
571571 ACCESS_FBINFO (features .pll .vco_freq_min ) = 62000 ;
@@ -594,7 +594,7 @@ static void MGAG100_progPixClock(CPMINFO int flags, int m, int n, int p) {
594594 int selClk ;
595595 int clk ;
596596
597- DBG (__FUNCTION__ )
597+ DBG (__func__ )
598598
599599 outDAC1064 (PMINFO M1064_XPIXCLKCTRL , inDAC1064 (PMINFO M1064_XPIXCLKCTRL ) | M1064_XPIXCLKCTRL_DIS |
600600 M1064_XPIXCLKCTRL_PLL_UP );
@@ -636,7 +636,7 @@ static void MGAG100_progPixClock(CPMINFO int flags, int m, int n, int p) {
636636static void MGAG100_setPixClock (CPMINFO int flags , int freq ) {
637637 unsigned int m , n , p ;
638638
639- DBG (__FUNCTION__ )
639+ DBG (__func__ )
640640
641641 DAC1064_calcclock (PMINFO freq , ACCESS_FBINFO (max_pixel_clock ), & m , & n , & p );
642642 MGAG100_progPixClock (PMINFO flags , m , n , p );
@@ -650,7 +650,7 @@ static int MGA1064_preinit(WPMINFO2) {
650650 2048 , 0 };
651651 struct matrox_hw_state * hw = & ACCESS_FBINFO (hw );
652652
653- DBG (__FUNCTION__ )
653+ DBG (__func__ )
654654
655655 /* ACCESS_FBINFO(capable.cfb4) = 0; ... preinitialized by 0 */
656656 ACCESS_FBINFO (capable .text ) = 1 ;
@@ -683,7 +683,7 @@ static int MGA1064_preinit(WPMINFO2) {
683683
684684static void MGA1064_reset (WPMINFO2 ) {
685685
686- DBG (__FUNCTION__ );
686+ DBG (__func__ );
687687
688688 MGA1064_ramdac_init (PMINFO2 );
689689}
@@ -819,7 +819,7 @@ static int MGAG100_preinit(WPMINFO2) {
819819 u_int32_t q ;
820820#endif
821821
822- DBG (__FUNCTION__ )
822+ DBG (__func__ )
823823
824824 /* there are some instabilities if in_div > 19 && vco < 61000 */
825825 if (ACCESS_FBINFO (devflags .g450dac )) {
@@ -956,7 +956,7 @@ static void MGAG100_reset(WPMINFO2) {
956956 u_int8_t b ;
957957 struct matrox_hw_state * hw = & ACCESS_FBINFO (hw );
958958
959- DBG (__FUNCTION__ )
959+ DBG (__func__ )
960960
961961 {
962962#ifdef G100_BROKEN_IBM_82351
@@ -1015,7 +1015,7 @@ static void MGA1064_restore(WPMINFO2) {
10151015
10161016 CRITFLAGS
10171017
1018- DBG (__FUNCTION__ )
1018+ DBG (__func__ )
10191019
10201020 CRITBEGIN
10211021
@@ -1041,7 +1041,7 @@ static void MGAG100_restore(WPMINFO2) {
10411041
10421042 CRITFLAGS
10431043
1044- DBG (__FUNCTION__ )
1044+ DBG (__func__ )
10451045
10461046 CRITBEGIN
10471047
0 commit comments