Commit 435347ed authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Helge Deller

video: fbdev: atari: Remove unused definitions and variables

Several definitions and variables are unused.
Some variables are set but further unused.

Remove them.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Tested-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 39101f13
...@@ -1070,8 +1070,6 @@ static int falcon_decode_var(struct fb_var_screeninfo *var, ...@@ -1070,8 +1070,6 @@ static int falcon_decode_var(struct fb_var_screeninfo *var,
xstretch = 2; /* Double pixel width only for hicolor */ xstretch = 2; /* Double pixel width only for hicolor */
/* Default values are used for vert./hor. timing if no pixelclock given. */ /* Default values are used for vert./hor. timing if no pixelclock given. */
if (var->pixclock == 0) { if (var->pixclock == 0) {
int linesize;
/* Choose master pixelclock depending on hor. timing */ /* Choose master pixelclock depending on hor. timing */
plen = 1 * xstretch; plen = 1 * xstretch;
if ((plen * xres + f25.right + f25.hsync + f25.left) * if ((plen * xres + f25.right + f25.hsync + f25.left) *
...@@ -1090,7 +1088,6 @@ static int falcon_decode_var(struct fb_var_screeninfo *var, ...@@ -1090,7 +1088,6 @@ static int falcon_decode_var(struct fb_var_screeninfo *var,
left_margin = pclock->left / plen; left_margin = pclock->left / plen;
right_margin = pclock->right / plen; right_margin = pclock->right / plen;
hsync_len = pclock->hsync / plen; hsync_len = pclock->hsync / plen;
linesize = left_margin + xres + right_margin + hsync_len;
upper_margin = 31; upper_margin = 31;
lower_margin = 11; lower_margin = 11;
vsync_len = 3; vsync_len = 3;
...@@ -2419,17 +2416,6 @@ atafb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) ...@@ -2419,17 +2416,6 @@ atafb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
* generic drawing routines; imageblit needs updating for image depth > 1 * generic drawing routines; imageblit needs updating for image depth > 1
*/ */
#if BITS_PER_LONG == 32
#define BYTES_PER_LONG 4
#define SHIFT_PER_LONG 5
#elif BITS_PER_LONG == 64
#define BYTES_PER_LONG 8
#define SHIFT_PER_LONG 6
#else
#define Please update me
#endif
static void atafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) static void atafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
{ {
struct atafb_par *par = info->par; struct atafb_par *par = info->par;
...@@ -2531,8 +2517,6 @@ static void atafb_imageblit(struct fb_info *info, const struct fb_image *image) ...@@ -2531,8 +2517,6 @@ static void atafb_imageblit(struct fb_info *info, const struct fb_image *image)
{ {
struct atafb_par *par = info->par; struct atafb_par *par = info->par;
int x2, y2; int x2, y2;
unsigned long *dst;
int dst_idx;
const char *src; const char *src;
u32 dx, dy, width, height, pitch; u32 dx, dy, width, height, pitch;
...@@ -2559,10 +2543,6 @@ static void atafb_imageblit(struct fb_info *info, const struct fb_image *image) ...@@ -2559,10 +2543,6 @@ static void atafb_imageblit(struct fb_info *info, const struct fb_image *image)
if (image->depth == 1) { if (image->depth == 1) {
// used for font data // used for font data
dst = (unsigned long *)
((unsigned long)info->screen_base & ~(BYTES_PER_LONG - 1));
dst_idx = ((unsigned long)info->screen_base & (BYTES_PER_LONG - 1)) * 8;
dst_idx += dy * par->next_line * 8 + dx;
src = image->data; src = image->data;
pitch = (image->width + 7) / 8; pitch = (image->width + 7) / 8;
while (height--) { while (height--) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment