]> git.baikalelectronics.ru Git - kernel.git/commitdiff
video: fbdev: wm8505fb: fix sparse warnings about using incorrect types
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 16 Jan 2020 14:56:50 +0000 (15:56 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 2 Mar 2020 15:32:04 +0000 (16:32 +0100)
Use ->screen_buffer instead of ->screen_base to fix sparse warnings.

[ Please see commit 91b035b33c0b ("fb.h: Provide alternate screen_base
  pointer") for details. ]

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/567cba81-5fec-4d91-f711-c0bdbfe5b513@samsung.com
drivers/video/fbdev/wm8505fb.c

index b656eff58c2376a4bd7e53385ab741414d88fdf4..8f4d674fa0d03892ea22bf3ecb8bd8f355890b03 100644 (file)
@@ -339,7 +339,7 @@ static int wm8505fb_probe(struct platform_device *pdev)
 
        fbi->fb.fix.smem_start          = fb_mem_phys;
        fbi->fb.fix.smem_len            = fb_mem_len;
-       fbi->fb.screen_base             = fb_mem_virt;
+       fbi->fb.screen_buffer           = fb_mem_virt;
        fbi->fb.screen_size             = fb_mem_len;
 
        fbi->contrast = 0x10;