diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-09-22 19:47:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:57 -0400 |
commit | ee5a27497957e55a520788f88536401e7b12bf41 (patch) | |
tree | 6625415aa5b2b3ceb2beff30798d5c5141dd463c /drivers/video/matrox/matroxfb_base.c | |
parent | 316b4d644caceb2cf7432d8a27e45b88f57ef2a0 (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_base.c')
-rw-r--r-- | drivers/video/matrox/matroxfb_base.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c index 73ad59822ea1..c6b122cfb300 100644 --- a/drivers/video/matrox/matroxfb_base.c +++ b/drivers/video/matrox/matroxfb_base.c | |||
@@ -204,8 +204,7 @@ static irqreturn_t matrox_irq(int irq, void *dev_id) | |||
204 | { | 204 | { |
205 | u_int32_t status; | 205 | u_int32_t status; |
206 | int handled = 0; | 206 | int handled = 0; |
207 | 207 | struct matrox_fb_info *minfo = dev_id; | |
208 | MINFO_FROM(dev_id); | ||
209 | 208 | ||
210 | status = mga_inl(M_STATUS); | 209 | status = mga_inl(M_STATUS); |
211 | 210 | ||
@@ -396,7 +395,7 @@ static void matroxfb_remove(struct matrox_fb_info *minfo, int dummy) | |||
396 | 395 | ||
397 | static int matroxfb_open(struct fb_info *info, int user) | 396 | static int matroxfb_open(struct fb_info *info, int user) |
398 | { | 397 | { |
399 | MINFO_FROM_INFO(info); | 398 | struct matrox_fb_info *minfo = info2minfo(info); |
400 | 399 | ||
401 | DBG_LOOP(__func__) | 400 | DBG_LOOP(__func__) |
402 | 401 | ||
@@ -412,7 +411,7 @@ static int matroxfb_open(struct fb_info *info, int user) | |||
412 | 411 | ||
413 | static int matroxfb_release(struct fb_info *info, int user) | 412 | static int matroxfb_release(struct fb_info *info, int user) |
414 | { | 413 | { |
415 | MINFO_FROM_INFO(info); | 414 | struct matrox_fb_info *minfo = info2minfo(info); |
416 | 415 | ||
417 | DBG_LOOP(__func__) | 416 | DBG_LOOP(__func__) |
418 | 417 | ||
@@ -429,7 +428,7 @@ static int matroxfb_release(struct fb_info *info, int user) | |||
429 | 428 | ||
430 | static int matroxfb_pan_display(struct fb_var_screeninfo *var, | 429 | static int matroxfb_pan_display(struct fb_var_screeninfo *var, |
431 | struct fb_info* info) { | 430 | struct fb_info* info) { |
432 | MINFO_FROM_INFO(info); | 431 | struct matrox_fb_info *minfo = info2minfo(info); |
433 | 432 | ||
434 | DBG(__func__) | 433 | DBG(__func__) |
435 | 434 | ||
@@ -749,7 +748,7 @@ static int matroxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *inf | |||
749 | int visual; | 748 | int visual; |
750 | int cmap_len; | 749 | int cmap_len; |
751 | unsigned int ydstorg; | 750 | unsigned int ydstorg; |
752 | MINFO_FROM_INFO(info); | 751 | struct matrox_fb_info *minfo = info2minfo(info); |
753 | 752 | ||
754 | if (minfo->dead) { | 753 | if (minfo->dead) { |
755 | return -ENXIO; | 754 | return -ENXIO; |
@@ -766,7 +765,7 @@ static int matroxfb_set_par(struct fb_info *info) | |||
766 | int cmap_len; | 765 | int cmap_len; |
767 | unsigned int ydstorg; | 766 | unsigned int ydstorg; |
768 | struct fb_var_screeninfo *var; | 767 | struct fb_var_screeninfo *var; |
769 | MINFO_FROM_INFO(info); | 768 | struct matrox_fb_info *minfo = info2minfo(info); |
770 | 769 | ||
771 | DBG(__func__) | 770 | DBG(__func__) |
772 | 771 | ||
@@ -890,7 +889,7 @@ static int matroxfb_ioctl(struct fb_info *info, | |||
890 | unsigned int cmd, unsigned long arg) | 889 | unsigned int cmd, unsigned long arg) |
891 | { | 890 | { |
892 | void __user *argp = (void __user *)arg; | 891 | void __user *argp = (void __user *)arg; |
893 | MINFO_FROM_INFO(info); | 892 | struct matrox_fb_info *minfo = info2minfo(info); |
894 | 893 | ||
895 | DBG(__func__) | 894 | DBG(__func__) |
896 | 895 | ||
@@ -1189,7 +1188,7 @@ static int matroxfb_blank(int blank, struct fb_info *info) | |||
1189 | int seq; | 1188 | int seq; |
1190 | int crtc; | 1189 | int crtc; |
1191 | CRITFLAGS | 1190 | CRITFLAGS |
1192 | MINFO_FROM_INFO(info); | 1191 | struct matrox_fb_info *minfo = info2minfo(info); |
1193 | 1192 | ||
1194 | DBG(__func__) | 1193 | DBG(__func__) |
1195 | 1194 | ||