From: Adrian Bunk <bunk@stusta.de>
To: thomas@winischhofer.net
Cc: linux-kernel@vger.kernel.org, adaplas@gmail.com
Subject: [RFC: 2.6 patch] sisfb_get_fix(): remove the unused second parameter
Date: Mon, 26 Mar 2007 06:09:21 +0200 [thread overview]
Message-ID: <20070326040921.GB16477@stusta.de> (raw)
Most likely this patch isn't correct but points to a bug.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/video/sis/sis_main.c | 11 ++++-------
drivers/video/sis/sis_main.h | 4 ++--
2 files changed, 6 insertions(+), 9 deletions(-)
--- linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.h.old 2007-03-26 00:26:53.000000000 +0200
+++ linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.h 2007-03-26 00:27:10.000000000 +0200
@@ -672,8 +672,8 @@
SISINITSTATIC int sisfb_init(void);
/* fbdev routines */
-static int sisfb_get_fix(struct fb_fix_screeninfo *fix, int con,
- struct fb_info *info);
+static int sisfb_get_fix(struct fb_fix_screeninfo *fix,
+ struct fb_info *info);
static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
unsigned long arg);
--- linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.c.old 2007-03-26 00:25:33.000000000 +0200
+++ linux-2.6.21-rc4-mm1/drivers/video/sis/sis_main.c 2007-03-26 00:26:35.000000000 +0200
@@ -1430,11 +1430,8 @@
if((err = sisfb_do_set_var(&info->var, 1, info)))
return err;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
- sisfb_get_fix(&info->fix, info->currcon, info);
-#else
- sisfb_get_fix(&info->fix, -1, info);
-#endif
+ sisfb_get_fix(&info->fix, info);
+
return 0;
}
@@ -1853,7 +1850,7 @@
}
static int
-sisfb_get_fix(struct fb_fix_screeninfo *fix, int con, struct fb_info *info)
+sisfb_get_fix(struct fb_fix_screeninfo *fix, struct fb_info *info)
{
struct sis_video_info *ivideo = (struct sis_video_info *)info->par;
@@ -6386,7 +6383,7 @@
sis_fb_info->fix = ivideo->sisfb_fix;
sis_fb_info->screen_base = ivideo->video_vbase + ivideo->video_offset;
sis_fb_info->fbops = &sisfb_ops;
- sisfb_get_fix(&sis_fb_info->fix, -1, sis_fb_info);
+ sisfb_get_fix(&sis_fb_info->fix, sis_fb_info);
sis_fb_info->pseudo_palette = ivideo->pseudo_palette;
fb_alloc_cmap(&sis_fb_info->cmap, 256 , 0);
reply other threads:[~2007-03-26 4:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070326040921.GB16477@stusta.de \
--to=bunk@stusta.de \
--cc=adaplas@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thomas@winischhofer.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®