Skip to content

Commit

Permalink
s3fb: implement fb_get_tilemax()
Browse files Browse the repository at this point in the history
Implement fb_get_tilemax(). It just returns 256.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent 11f11d5 commit ff388ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/video/s3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,18 @@ static void s3fb_settile_fast(struct fb_info *info, struct fb_tilemap *map)
}
}


static int s3fb_get_tilemax(struct fb_info *info)
{
return 256;
}

static struct fb_tile_ops s3fb_tile_ops = {
.fb_settile = svga_settile,
.fb_tilecopy = svga_tilecopy,
.fb_tilefill = svga_tilefill,
.fb_tileblit = svga_tileblit,
.fb_tilecursor = svga_tilecursor,
.fb_get_tilemax = s3fb_get_tilemax,
};

static struct fb_tile_ops s3fb_fast_tile_ops = {
Expand All @@ -199,6 +203,7 @@ static struct fb_tile_ops s3fb_fast_tile_ops = {
.fb_tilefill = svga_tilefill,
.fb_tileblit = svga_tileblit,
.fb_tilecursor = svga_tilecursor,
.fb_get_tilemax = s3fb_get_tilemax,
};


Expand Down

0 comments on commit ff388ad

Please sign in to comment.