From: Michael Hennerich Date: Fri, 11 Oct 2019 11:24:41 +0000 (+0300) Subject: staging: fbtft: fbtft-core: Fix last line displayed on fbcon X-Git-Tag: v5.15~5053^2~252 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91d6f911b348dcb8e22d87913f4a0f52e646e990;p=platform%2Fkernel%2Flinux-starfive.git staging: fbtft: fbtft-core: Fix last line displayed on fbcon For the special case when fbtft_mkdirty() is called with with -1 for the y coordinate, the height is truncated by 1. This isn't required, and causes the last line to not update. Signed-off-by: Michael Hennerich Signed-off-by: Alexandru Ardelean Link: https://lore.kernel.org/r/20191011112441.31003-1-alexandru.ardelean@analog.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index cf5700a..90eec45 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -317,7 +317,7 @@ static void fbtft_mkdirty(struct fb_info *info, int y, int height) /* special case, needed ? */ if (y == -1) { y = 0; - height = info->var.yres - 1; + height = info->var.yres; } /* Mark display lines/area as dirty */