From: Thomas Zimmermann <tzimmermann@suse.de>
To: deller@gmx.de, David.Laight@ACULAB.COM
Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-sh@vger.kernel.org, Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH 3/3] fbdev/hitfb: Use NULL for pointers
Date: Tue, 6 Jun 2023 12:40:56 +0200 [thread overview]
Message-ID: <20230606104056.29553-4-tzimmermann@suse.de> (raw)
In-Reply-To: <20230606104056.29553-1-tzimmermann@suse.de>
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>
---
drivers/video/fbdev/hitfb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/fbdev/hitfb.c b/drivers/video/fbdev/hitfb.c
index 1ee3aa3d3fc7..c6b3d9f38c01 100644
--- a/drivers/video/fbdev/hitfb.c
+++ b/drivers/video/fbdev/hitfb.c
@@ -444,7 +444,7 @@ static int hitfb_suspend(struct device *dev)
{
u16 v;
- hitfb_blank(1,0);
+ hitfb_blank(1, NULL);
v = hitfb_readw(HD64461_STBCR);
v |= HD64461_STBCR_SLCKE_IST;
hitfb_writew(v, HD64461_STBCR);
@@ -462,7 +462,7 @@ static int hitfb_resume(struct device *dev)
v = hitfb_readw(HD64461_STBCR);
v &= ~HD64461_STBCR_SLCKE_IST;
hitfb_writew(v, HD64461_STBCR);
- hitfb_blank(0,0);
+ hitfb_blank(0, NULL);
return 0;
}
--
2.40.1
next prev parent reply other threads:[~2023-06-06 10:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-06 10:40 [PATCH 0/3] fbdev/hitfb: Various fixes Thomas Zimmermann
2023-06-06 10:40 ` [PATCH 1/3] fbdev/hitfb: Declare hitfb_blank() as static Thomas Zimmermann
2023-06-06 10:40 ` [PATCH 2/3] fbdev/hitfb: Fix integer-to-pointer cast Thomas Zimmermann
2023-06-06 10:40 ` Thomas Zimmermann [this message]
2023-06-06 12:35 ` [PATCH 0/3] fbdev/hitfb: Various fixes Ruhl, Michael J
2023-06-12 14:59 ` Thomas Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230606104056.29553-4-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=David.Laight@ACULAB.COM \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).