Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Aurabindo Pillai <aurabindo.pillai@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: hersenxs.wu@amd.com
Subject: [igt-dev] [PATCH 3/3] lib/amdgpu: checkpatch.pl fixes
Date: Thu, 24 Aug 2023 12:15:04 -0400	[thread overview]
Message-ID: <20230824161504.154365-3-aurabindo.pillai@amd.com> (raw)
In-Reply-To: <20230824161504.154365-1-aurabindo.pillai@amd.com>

fix checkpatch.pl identified issue: typo and braces

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
---
 lib/igt_amd.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/igt_amd.c b/lib/igt_amd.c
index 49ca9e6d9..3199bf159 100644
--- a/lib/igt_amd.c
+++ b/lib/igt_amd.c
@@ -1154,7 +1154,8 @@ void igt_amd_allow_edp_hotplug_detect(int drm_fd, char *connector_name, bool ena
 	close(hpd_fd);
 }
 
-static bool get_dm_capabilites(int drm_fd, char *buf, size_t size) {
+static bool get_dm_capabilities(int drm_fd, char *buf, size_t size)
+{
 	int ret, fd;
 	bool has_capablities = amd_has_debugfs(drm_fd, DEBUGFS_DM_CAPABILITIES);
 
@@ -1183,7 +1184,7 @@ static bool get_dm_capabilites(int drm_fd, char *buf, size_t size) {
  *
  * @param drm_fd DRM file descriptor
  * @return true if dm capabilities interface exists and MALL is supported
- * @return false if capabilites could not be read.
+ * @return false if capabilities could not be read.
  */
 void igt_amd_get_mall_status(int drm_fd, u32 *supported, u32 *enabled)
 {
@@ -1193,7 +1194,7 @@ void igt_amd_get_mall_status(int drm_fd, u32 *supported, u32 *enabled)
 	*supported = false;
 	*enabled = false;
 
-	if (!get_dm_capabilites(drm_fd, buf, 1024))
+	if (!get_dm_capabilities(drm_fd, buf, 1024))
 		return false;
 
 	mall_loc = strstr(buf, "mall supported: yes");
-- 
2.41.0

  parent reply	other threads:[~2023-08-24 16:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24 16:15 [igt-dev] [PATCH 1/3] tests/amdgpu/amd_mall: Add crc check Aurabindo Pillai
2023-08-24 16:15 ` [igt-dev] [PATCH 2/3] tests/amdgpu/amd_mall: remove UMR dependency Aurabindo Pillai
2023-08-25  3:49   ` Alex Hung
2023-08-25 13:51     ` Aurabindo Pillai
2023-08-24 16:15 ` Aurabindo Pillai [this message]
2023-08-24 17:41 ` [igt-dev] ✗ Fi.CI.BUILD: failure for series starting with [1/3] tests/amdgpu/amd_mall: Add crc check Patchwork
2023-08-24 17:45 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork

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=20230824161504.154365-3-aurabindo.pillai@amd.com \
    --to=aurabindo.pillai@amd.com \
    --cc=hersenxs.wu@amd.com \
    --cc=igt-dev@lists.freedesktop.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