From dadeeffbe525597518df92d859050a3a98e78139 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 6 Jun 2023 12:40:56 +0200 Subject: fbdev: hitfb: Use NULL for pointers Replace integer constants with NULL. Resolves the following warnings: ../drivers/video/fbdev/hitfb.c:447:23: warning: Using plain integer as NULL pointer ../drivers/video/fbdev/hitfb.c:465:23: warning: Using plain integer as NULL pointer Signed-off-by: Thomas Zimmermann Reviewed-by: Michael J. Ruhl Signed-off-by: Helge Deller --- drivers/video/fbdev/hitfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/video/fbdev/hitfb.c') diff --git a/drivers/video/fbdev/hitfb.c b/drivers/video/fbdev/hitfb.c index ee7bf3c963b2..5f544a177033 100644 --- a/drivers/video/fbdev/hitfb.c +++ b/drivers/video/fbdev/hitfb.c @@ -428,7 +428,7 @@ static int hitfb_suspend(struct device *dev) { u16 v; - hitfb_blank(1,0); + hitfb_blank(1, NULL); v = fb_readw(HD64461_STBCR); v |= HD64461_STBCR_SLCKE_IST; fb_writew(v, HD64461_STBCR); @@ -446,7 +446,7 @@ static int hitfb_resume(struct device *dev) v = fb_readw(HD64461_STBCR); v &= ~HD64461_STBCR_SLCKE_IST; fb_writew(v, HD64461_STBCR); - hitfb_blank(0,0); + hitfb_blank(0, NULL); return 0; } -- cgit v1.2.3