summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/hitfb.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-06-06 12:40:56 +0200
committerHelge Deller <deller@gmx.de>2023-06-19 09:02:51 +0200
commitdadeeffbe525597518df92d859050a3a98e78139 (patch)
tree388704ab13d9b6061c5c6879d64d29ebf6be562c /drivers/video/fbdev/hitfb.c
parentfbdev: hitfb: Fix integer-to-pointer cast (diff)
downloadlinux-dadeeffbe525597518df92d859050a3a98e78139.tar.xz
linux-dadeeffbe525597518df92d859050a3a98e78139.zip
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 <tzimmermann@suse.de> Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/hitfb.c')
-rw-r--r--drivers/video/fbdev/hitfb.c4
1 files changed, 2 insertions, 2 deletions
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;
}