[PATCH 2/3] drm/amd/display: clean codestyle error
Marcelo Mendes Spessoto Junior
marcelomspessoto at gmail.com
Wed Feb 14 22:42:16 UTC 2024
Use () for complex macro in dmub/src/dmub_dcn32.c
Signed-off-by: Marcelo Mendes Spessoto Junior <marcelomspessoto at gmail.com>
---
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c
index 0d521eeda..db9bf55f5 100644
--- a/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c
+++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c
@@ -35,7 +35,7 @@
#define BASE_INNER(seg) ctx->dcn_reg_offsets[seg]
#define CTX dmub
#define REGS dmub->regs_dcn32
-#define REG_OFFSET_EXP(reg_name) BASE(reg##reg_name##_BASE_IDX) + reg##reg_name
+#define REG_OFFSET_EXP(reg_name) (BASE(reg##reg_name##_BASE_IDX) + reg##reg_name)
void dmub_srv_dcn32_regs_init(struct dmub_srv *dmub, struct dc_context *ctx)
{
--
2.39.2
More information about the dri-devel
mailing list