From: Nicolas Devos <ndevos-dev@pm.me>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: Nicolas Devos <ndevos-dev@pm.me>
Subject: [PATCH 3/4] gpu/drm: Prefer `unsigned int` over `unsigned`
Date: Tue, 02 Apr 2024 22:43:43 +0000 [thread overview]
Message-ID: <20240402224320.12146-4-ndevos-dev@pm.me> (raw)
In-Reply-To: <20240402224320.12146-1-ndevos-dev@pm.me>
This commit fixes following checkpatch warning:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: Nicolas Devos <ndevos-dev@pm.me>
---
drivers/gpu/drm/drm_connector.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 6d8f0fc905f3..de71805aab2c 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -2076,7 +2076,7 @@ int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
struct drm_device *dev = connector->dev;
struct drm_property *scaling_mode_property;
int i;
- const unsigned valid_scaling_mode_mask =
+ const unsigned int valid_scaling_mode_mask =
(1U << ARRAY_SIZE(drm_scaling_mode_enum_list)) - 1;
if (WARN_ON(hweight32(scaling_mode_mask) < 2 ||
--
2.42.0
next prev parent reply other threads:[~2024-04-02 22:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-02 22:43 [PATCH 0/4] gpu/drm: Fix checkpatch warnings in drm_connector.c Nicolas Devos
2024-04-02 22:43 ` [PATCH 1/4] gpu/drm: Add SPDX-license-Identifier tag Nicolas Devos
2024-04-02 23:58 ` Joe Perches
2024-04-02 22:43 ` [PATCH 2/4] gpu/drm: Remove unnecessary braces Nicolas Devos
2024-04-02 22:43 ` Nicolas Devos [this message]
2024-04-02 22:43 ` [PATCH 4/4] gpu/drm: Replace tabs with spaces in comments Nicolas Devos
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=20240402224320.12146-4-ndevos-dev@pm.me \
--to=ndevos-dev@pm.me \
--cc=airlied@gmail.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=tzimmermann@suse.de \
/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