aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/matrox/matroxfb_base.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-28 05:15:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:42 -0400
commit5ae121705bed9ea7425daef4d7d29038f7312f3f (patch)
treefa1527459b056ad59acfbf1fa59c5a8880f6ac22 /drivers/video/matrox/matroxfb_base.c
parente7a05aa9e697ff6fc165d45671cdcca601942f62 (diff)
video: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Cc: Krzysztof Helt <krzysztof.h1@wp.pl> Cc: Antonino Daplas <adaplas@gmail.com> Cc: Antonino A. Daplas <adaplas@gmail.com> Cc: Antonino Daplas <adaplas@pol.net> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Jean Delvare <khali@linux-fr.org> Cc: Adrian Bunk <bunk@stusta.de> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/matrox/matroxfb_base.c')
-rw-r--r--drivers/video/matrox/matroxfb_base.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
index b25972ac6eeb..54e82f35353d 100644
--- a/drivers/video/matrox/matroxfb_base.c
+++ b/drivers/video/matrox/matroxfb_base.c
@@ -312,7 +312,7 @@ static void matrox_pan_var(WPMINFO struct fb_var_screeninfo *var) {
312 312
313 CRITFLAGS 313 CRITFLAGS
314 314
315 DBG(__FUNCTION__) 315 DBG(__func__)
316 316
317 if (ACCESS_FBINFO(dead)) 317 if (ACCESS_FBINFO(dead))
318 return; 318 return;
@@ -392,7 +392,7 @@ static int matroxfb_open(struct fb_info *info, int user)
392{ 392{
393 MINFO_FROM_INFO(info); 393 MINFO_FROM_INFO(info);
394 394
395 DBG_LOOP(__FUNCTION__) 395 DBG_LOOP(__func__)
396 396
397 if (ACCESS_FBINFO(dead)) { 397 if (ACCESS_FBINFO(dead)) {
398 return -ENXIO; 398 return -ENXIO;
@@ -408,7 +408,7 @@ static int matroxfb_release(struct fb_info *info, int user)
408{ 408{
409 MINFO_FROM_INFO(info); 409 MINFO_FROM_INFO(info);
410 410
411 DBG_LOOP(__FUNCTION__) 411 DBG_LOOP(__func__)
412 412
413 if (user) { 413 if (user) {
414 if (0 == --ACCESS_FBINFO(userusecount)) { 414 if (0 == --ACCESS_FBINFO(userusecount)) {
@@ -425,7 +425,7 @@ static int matroxfb_pan_display(struct fb_var_screeninfo *var,
425 struct fb_info* info) { 425 struct fb_info* info) {
426 MINFO_FROM_INFO(info); 426 MINFO_FROM_INFO(info);
427 427
428 DBG(__FUNCTION__) 428 DBG(__func__)
429 429
430 matrox_pan_var(PMINFO var); 430 matrox_pan_var(PMINFO var);
431 return 0; 431 return 0;
@@ -434,7 +434,7 @@ static int matroxfb_pan_display(struct fb_var_screeninfo *var,
434static int matroxfb_get_final_bppShift(CPMINFO int bpp) { 434static int matroxfb_get_final_bppShift(CPMINFO int bpp) {
435 int bppshft2; 435 int bppshft2;
436 436
437 DBG(__FUNCTION__) 437 DBG(__func__)
438 438
439 bppshft2 = bpp; 439 bppshft2 = bpp;
440 if (!bppshft2) { 440 if (!bppshft2) {
@@ -451,7 +451,7 @@ static int matroxfb_test_and_set_rounding(CPMINFO int xres, int bpp) {
451 int over; 451 int over;
452 int rounding; 452 int rounding;
453 453
454 DBG(__FUNCTION__) 454 DBG(__func__)
455 455
456 switch (bpp) { 456 switch (bpp) {
457 case 0: return xres; 457 case 0: return xres;
@@ -482,7 +482,7 @@ static int matroxfb_pitch_adjust(CPMINFO int xres, int bpp) {
482 const int* width; 482 const int* width;
483 int xres_new; 483 int xres_new;
484 484
485 DBG(__FUNCTION__) 485 DBG(__func__)
486 486
487 if (!bpp) return xres; 487 if (!bpp) return xres;
488 488
@@ -504,7 +504,7 @@ static int matroxfb_pitch_adjust(CPMINFO int xres, int bpp) {
504 504
505static int matroxfb_get_cmap_len(struct fb_var_screeninfo *var) { 505static int matroxfb_get_cmap_len(struct fb_var_screeninfo *var) {
506 506
507 DBG(__FUNCTION__) 507 DBG(__func__)
508 508
509 switch (var->bits_per_pixel) { 509 switch (var->bits_per_pixel) {
510 case 4: 510 case 4:
@@ -548,7 +548,7 @@ static int matroxfb_decode_var(CPMINFO struct fb_var_screeninfo *var, int *visua
548 unsigned int vramlen; 548 unsigned int vramlen;
549 unsigned int memlen; 549 unsigned int memlen;
550 550
551 DBG(__FUNCTION__) 551 DBG(__func__)
552 552
553 switch (bpp) { 553 switch (bpp) {
554 case 4: if (!ACCESS_FBINFO(capable.cfb4)) return -EINVAL; 554 case 4: if (!ACCESS_FBINFO(capable.cfb4)) return -EINVAL;
@@ -648,7 +648,7 @@ static int matroxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
648 struct matrox_fb_info* minfo = container_of(fb_info, struct matrox_fb_info, fbcon); 648 struct matrox_fb_info* minfo = container_of(fb_info, struct matrox_fb_info, fbcon);
649#endif 649#endif
650 650
651 DBG(__FUNCTION__) 651 DBG(__func__)
652 652
653 /* 653 /*
654 * Set a single color register. The values supplied are 654 * Set a single color register. The values supplied are
@@ -707,7 +707,7 @@ static int matroxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
707static void matroxfb_init_fix(WPMINFO2) 707static void matroxfb_init_fix(WPMINFO2)
708{ 708{
709 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix; 709 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix;
710 DBG(__FUNCTION__) 710 DBG(__func__)
711 711
712 strcpy(fix->id,"MATROX"); 712 strcpy(fix->id,"MATROX");
713 713
@@ -722,7 +722,7 @@ static void matroxfb_init_fix(WPMINFO2)
722static void matroxfb_update_fix(WPMINFO2) 722static void matroxfb_update_fix(WPMINFO2)
723{ 723{
724 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix; 724 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix;
725 DBG(__FUNCTION__) 725 DBG(__func__)
726 726
727 fix->smem_start = ACCESS_FBINFO(video.base) + ACCESS_FBINFO(curr.ydstorg.bytes); 727 fix->smem_start = ACCESS_FBINFO(video.base) + ACCESS_FBINFO(curr.ydstorg.bytes);
728 fix->smem_len = ACCESS_FBINFO(video.len_usable) - ACCESS_FBINFO(curr.ydstorg.bytes); 728 fix->smem_len = ACCESS_FBINFO(video.len_usable) - ACCESS_FBINFO(curr.ydstorg.bytes);
@@ -753,7 +753,7 @@ static int matroxfb_set_par(struct fb_info *info)
753 struct fb_var_screeninfo *var; 753 struct fb_var_screeninfo *var;
754 MINFO_FROM_INFO(info); 754 MINFO_FROM_INFO(info);
755 755
756 DBG(__FUNCTION__) 756 DBG(__func__)
757 757
758 if (ACCESS_FBINFO(dead)) { 758 if (ACCESS_FBINFO(dead)) {
759 return -ENXIO; 759 return -ENXIO;
@@ -876,7 +876,7 @@ static int matroxfb_ioctl(struct fb_info *info,
876 void __user *argp = (void __user *)arg; 876 void __user *argp = (void __user *)arg;
877 MINFO_FROM_INFO(info); 877 MINFO_FROM_INFO(info);
878 878
879 DBG(__FUNCTION__) 879 DBG(__func__)
880 880
881 if (ACCESS_FBINFO(dead)) { 881 if (ACCESS_FBINFO(dead)) {
882 return -ENXIO; 882 return -ENXIO;
@@ -1175,7 +1175,7 @@ static int matroxfb_blank(int blank, struct fb_info *info)
1175 CRITFLAGS 1175 CRITFLAGS
1176 MINFO_FROM_INFO(info); 1176 MINFO_FROM_INFO(info);
1177 1177
1178 DBG(__FUNCTION__) 1178 DBG(__func__)
1179 1179
1180 if (ACCESS_FBINFO(dead)) 1180 if (ACCESS_FBINFO(dead))
1181 return 1; 1181 return 1;
@@ -1287,7 +1287,7 @@ static int matroxfb_getmemory(WPMINFO unsigned int maxSize, unsigned int *realSi
1287 unsigned char bytes[32]; 1287 unsigned char bytes[32];
1288 unsigned char* tmp; 1288 unsigned char* tmp;
1289 1289
1290 DBG(__FUNCTION__) 1290 DBG(__func__)
1291 1291
1292 vm = ACCESS_FBINFO(video.vbase); 1292 vm = ACCESS_FBINFO(video.vbase);
1293 maxSize &= ~0x1FFFFF; /* must be X*2MB (really it must be 2 or X*4MB) */ 1293 maxSize &= ~0x1FFFFF; /* must be X*2MB (really it must be 2 or X*4MB) */
@@ -1593,7 +1593,7 @@ static int initMatrox2(WPMINFO struct board* b){
1593 { }, 1593 { },
1594 }; 1594 };
1595 1595
1596 DBG(__FUNCTION__) 1596 DBG(__func__)
1597 1597
1598 /* set default values... */ 1598 /* set default values... */
1599 vesafb_defined.accel_flags = FB_ACCELF_TEXT; 1599 vesafb_defined.accel_flags = FB_ACCELF_TEXT;
@@ -2006,7 +2006,7 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
2006#ifndef CONFIG_FB_MATROX_MULTIHEAD 2006#ifndef CONFIG_FB_MATROX_MULTIHEAD
2007 static int registered = 0; 2007 static int registered = 0;
2008#endif 2008#endif
2009 DBG(__FUNCTION__) 2009 DBG(__func__)
2010 2010
2011 svid = pdev->subsystem_vendor; 2011 svid = pdev->subsystem_vendor;
2012 sid = pdev->subsystem_device; 2012 sid = pdev->subsystem_device;
@@ -2301,7 +2301,7 @@ static void __exit matrox_done(void) {
2301static int __init matroxfb_setup(char *options) { 2301static int __init matroxfb_setup(char *options) {
2302 char *this_opt; 2302 char *this_opt;
2303 2303
2304 DBG(__FUNCTION__) 2304 DBG(__func__)
2305 2305
2306 if (!options || !*options) 2306 if (!options || !*options)
2307 return 0; 2307 return 0;
@@ -2444,7 +2444,7 @@ static int __init matroxfb_init(void)
2444 char *option = NULL; 2444 char *option = NULL;
2445 int err = 0; 2445 int err = 0;
2446 2446
2447 DBG(__FUNCTION__) 2447 DBG(__func__)
2448 2448
2449 if (fb_get_options("matroxfb", &option)) 2449 if (fb_get_options("matroxfb", &option))
2450 return -ENODEV; 2450 return -ENODEV;
@@ -2556,7 +2556,7 @@ MODULE_PARM_DESC(cmode, "Specify the video depth that should be used (8bit defau
2556 2556
2557int __init init_module(void){ 2557int __init init_module(void){
2558 2558
2559 DBG(__FUNCTION__) 2559 DBG(__func__)
2560 2560
2561 if (disabled) 2561 if (disabled)
2562 return -ENXIO; 2562 return -ENXIO;