aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/matrox/matroxfb_accel.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-09-22 19:47:50 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-23 10:39:57 -0400
commitee5a27497957e55a520788f88536401e7b12bf41 (patch)
tree6625415aa5b2b3ceb2beff30798d5c5141dd463c /drivers/video/matrox/matroxfb_accel.c
parent316b4d644caceb2cf7432d8a27e45b88f57ef2a0 (diff)
matroxfb: get rid of unneeded macro MINFO_FROM
With multihead support always enabled, macros MINFO_FROM and MINFO_FROM_INFO are no longer needed and make the code harder to read. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Petr Vandrovec <vandrove@vc.cvut.cz> Cc: Krzysztof Helt <krzysztof.h1@poczta.fm> 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_accel.c')
-rw-r--r--drivers/video/matrox/matroxfb_accel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/matrox/matroxfb_accel.c b/drivers/video/matrox/matroxfb_accel.c
index 3577ec144f86..8335a6fe303e 100644
--- a/drivers/video/matrox/matroxfb_accel.c
+++ b/drivers/video/matrox/matroxfb_accel.c
@@ -275,7 +275,7 @@ static void matrox_accel_bmove_lin(struct matrox_fb_info *minfo, int vxres,
275} 275}
276 276
277static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyarea* area) { 277static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyarea* area) {
278 MINFO_FROM_INFO(info); 278 struct matrox_fb_info *minfo = info2minfo(info);
279 279
280 if ((area->sx | area->dx | area->width) & 1) 280 if ((area->sx | area->dx | area->width) & 1)
281 cfb_copyarea(info, area); 281 cfb_copyarea(info, area);
@@ -284,7 +284,7 @@ static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyare
284} 284}
285 285
286static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area) { 286static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area) {
287 MINFO_FROM_INFO(info); 287 struct matrox_fb_info *minfo = info2minfo(info);
288 288
289 matrox_accel_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->height, area->width); 289 matrox_accel_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->height, area->width);
290} 290}
@@ -309,7 +309,7 @@ static void matroxfb_accel_clear(struct matrox_fb_info *minfo, u_int32_t color,
309} 309}
310 310
311static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { 311static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) {
312 MINFO_FROM_INFO(info); 312 struct matrox_fb_info *minfo = info2minfo(info);
313 313
314 switch (rect->rop) { 314 switch (rect->rop) {
315 case ROP_COPY: 315 case ROP_COPY:
@@ -376,7 +376,7 @@ static void matroxfb_cfb4_clear(struct matrox_fb_info *minfo, u_int32_t bgx,
376} 376}
377 377
378static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { 378static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) {
379 MINFO_FROM_INFO(info); 379 struct matrox_fb_info *minfo = info2minfo(info);
380 380
381 switch (rect->rop) { 381 switch (rect->rop) {
382 case ROP_COPY: 382 case ROP_COPY:
@@ -478,7 +478,7 @@ static void matroxfb_1bpp_imageblit(struct matrox_fb_info *minfo, u_int32_t fgx,
478 478
479 479
480static void matroxfb_imageblit(struct fb_info* info, const struct fb_image* image) { 480static void matroxfb_imageblit(struct fb_info* info, const struct fb_image* image) {
481 MINFO_FROM_INFO(info); 481 struct matrox_fb_info *minfo = info2minfo(info);
482 482
483 DBG_HEAVY(__func__); 483 DBG_HEAVY(__func__);
484 484