From: Antonino A. Daplas Date: Tue, 8 May 2007 07:39:17 +0000 (-0700) Subject: s3fb: implement fb_get_tilemax() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff388ad05bc67163124ac74126bbc16faa2fb771;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git s3fb: implement fb_get_tilemax() Implement fb_get_tilemax(). It just returns 256. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index 53f1eb9638ae..2a8d7d3338d5 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c @@ -183,7 +183,10 @@ 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, @@ -191,6 +194,7 @@ static struct fb_tile_ops s3fb_tile_ops = { .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 = { @@ -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, };