aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/matrox/matroxfb_crtc2.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_crtc2.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_crtc2.c')
-rw-r--r--drivers/video/matrox/matroxfb_crtc2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/video/matrox/matroxfb_crtc2.c b/drivers/video/matrox/matroxfb_crtc2.c
index f41d4b4f8e75..78414baa5a54 100644
--- a/drivers/video/matrox/matroxfb_crtc2.c
+++ b/drivers/video/matrox/matroxfb_crtc2.c
@@ -65,7 +65,7 @@ static void matroxfb_dh_restore(struct matroxfb_dh_fb_info* m2info,
65 unsigned int pos) { 65 unsigned int pos) {
66 u_int32_t tmp; 66 u_int32_t tmp;
67 u_int32_t datactl; 67 u_int32_t datactl;
68 MINFO_FROM(m2info->primary_dev); 68 struct matrox_fb_info *minfo = m2info->primary_dev;
69 69
70 switch (mode) { 70 switch (mode) {
71 case 15: 71 case 15:
@@ -157,7 +157,7 @@ static void matroxfb_dh_restore(struct matroxfb_dh_fb_info* m2info,
157} 157}
158 158
159static void matroxfb_dh_disable(struct matroxfb_dh_fb_info* m2info) { 159static void matroxfb_dh_disable(struct matroxfb_dh_fb_info* m2info) {
160 MINFO_FROM(m2info->primary_dev); 160 struct matrox_fb_info *minfo = m2info->primary_dev;
161 161
162 mga_outl(0x3C10, 0x00000004); /* disable CRTC2, CRTC1->DAC1, PLL as clock source */ 162 mga_outl(0x3C10, 0x00000004); /* disable CRTC2, CRTC1->DAC1, PLL as clock source */
163 minfo->hw.crtc2.ctl = 0x00000004; 163 minfo->hw.crtc2.ctl = 0x00000004;
@@ -168,7 +168,7 @@ static void matroxfb_dh_pan_var(struct matroxfb_dh_fb_info* m2info,
168 unsigned int pos; 168 unsigned int pos;
169 unsigned int linelen; 169 unsigned int linelen;
170 unsigned int pixelsize; 170 unsigned int pixelsize;
171 MINFO_FROM(m2info->primary_dev); 171 struct matrox_fb_info *minfo = m2info->primary_dev;
172 172
173 m2info->fbcon.var.xoffset = var->xoffset; 173 m2info->fbcon.var.xoffset = var->xoffset;
174 m2info->fbcon.var.yoffset = var->yoffset; 174 m2info->fbcon.var.yoffset = var->yoffset;
@@ -260,7 +260,7 @@ static int matroxfb_dh_decode_var(struct matroxfb_dh_fb_info* m2info,
260 260
261static int matroxfb_dh_open(struct fb_info* info, int user) { 261static int matroxfb_dh_open(struct fb_info* info, int user) {
262#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) 262#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon))
263 MINFO_FROM(m2info->primary_dev); 263 struct matrox_fb_info *minfo = m2info->primary_dev;
264 264
265 if (minfo) { 265 if (minfo) {
266 int err; 266 int err;
@@ -280,7 +280,7 @@ static int matroxfb_dh_open(struct fb_info* info, int user) {
280static int matroxfb_dh_release(struct fb_info* info, int user) { 280static int matroxfb_dh_release(struct fb_info* info, int user) {
281#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) 281#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon))
282 int err = 0; 282 int err = 0;
283 MINFO_FROM(m2info->primary_dev); 283 struct matrox_fb_info *minfo = m2info->primary_dev;
284 284
285 if (minfo) { 285 if (minfo) {
286 err = minfo->fbops.fb_release(&minfo->fbcon, user); 286 err = minfo->fbops.fb_release(&minfo->fbcon, user);
@@ -326,7 +326,7 @@ static int matroxfb_dh_set_par(struct fb_info* info) {
326 int mode; 326 int mode;
327 int err; 327 int err;
328 struct fb_var_screeninfo* var = &info->var; 328 struct fb_var_screeninfo* var = &info->var;
329 MINFO_FROM(m2info->primary_dev); 329 struct matrox_fb_info *minfo = m2info->primary_dev;
330 330
331 if ((err = matroxfb_dh_decode_var(m2info, var, &visual, &cmap_len, &mode)) != 0) 331 if ((err = matroxfb_dh_decode_var(m2info, var, &visual, &cmap_len, &mode)) != 0)
332 return err; 332 return err;
@@ -399,7 +399,7 @@ static int matroxfb_dh_pan_display(struct fb_var_screeninfo* var, struct fb_info
399} 399}
400 400
401static int matroxfb_dh_get_vblank(const struct matroxfb_dh_fb_info* m2info, struct fb_vblank* vblank) { 401static int matroxfb_dh_get_vblank(const struct matroxfb_dh_fb_info* m2info, struct fb_vblank* vblank) {
402 MINFO_FROM(m2info->primary_dev); 402 struct matrox_fb_info *minfo = m2info->primary_dev;
403 403
404 matroxfb_enable_irq(minfo, 0); 404 matroxfb_enable_irq(minfo, 0);
405 memset(vblank, 0, sizeof(*vblank)); 405 memset(vblank, 0, sizeof(*vblank));
@@ -423,7 +423,7 @@ static int matroxfb_dh_ioctl(struct fb_info *info,
423 unsigned long arg) 423 unsigned long arg)
424{ 424{
425#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) 425#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon))
426 MINFO_FROM(m2info->primary_dev); 426 struct matrox_fb_info *minfo = m2info->primary_dev;
427 427
428 DBG(__func__) 428 DBG(__func__)
429 429