* [PATCH] drm/radeon: ERROR: open brace '{' following function definitions go on the next line
[not found] <tencent_21616D4FB2F221FE67B71858B197C646AB08@qq.com>
@ 2023-07-14 3:20 ` shijie001
0 siblings, 0 replies; 2+ messages in thread
From: shijie001 @ 2023-07-14 3:20 UTC (permalink / raw)
To: airlied, daniel, christian.koenig, alexander.deucher, Xinhui.Pan
Cc: amd-gfx, dri-devel, linux-kernel
Fix four occurrences of the checkpatch.pl error:
ERROR: open brace '{' following function definitions go on the next line
Signed-off-by: Jie Shi <shijie001@208suo.com>
---
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
index 6f93f54bf651..2a3c3f8b02e2 100644
--- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
+++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
@@ -61,19 +61,23 @@ struct atpx_mux {
u16 mux;
} __packed;
-bool radeon_has_atpx(void) {
+bool radeon_has_atpx(void)
+{
return radeon_atpx_priv.atpx_detected;
}
-bool radeon_has_atpx_dgpu_power_cntl(void) {
+bool radeon_has_atpx_dgpu_power_cntl(void)
+{
return radeon_atpx_priv.atpx.functions.power_cntl;
}
-bool radeon_is_atpx_hybrid(void) {
+bool radeon_is_atpx_hybrid(void)
+{
return radeon_atpx_priv.atpx.is_hybrid;
}
-bool radeon_atpx_dgpu_req_power_for_displays(void) {
+bool radeon_atpx_dgpu_req_power_for_displays(void)
+{
return radeon_atpx_priv.atpx.dgpu_req_power_for_displays;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] drm/radeon: ERROR: open brace '{' following function definitions go on the next line
@ 2023-07-14 3:20 ` shijie001
0 siblings, 0 replies; 2+ messages in thread
From: shijie001 @ 2023-07-14 3:20 UTC (permalink / raw)
To: airlied, daniel, christian.koenig, alexander.deucher, Xinhui.Pan
Cc: dri-devel, amd-gfx, linux-kernel
Fix four occurrences of the checkpatch.pl error:
ERROR: open brace '{' following function definitions go on the next line
Signed-off-by: Jie Shi <shijie001@208suo.com>
---
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
index 6f93f54bf651..2a3c3f8b02e2 100644
--- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
+++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
@@ -61,19 +61,23 @@ struct atpx_mux {
u16 mux;
} __packed;
-bool radeon_has_atpx(void) {
+bool radeon_has_atpx(void)
+{
return radeon_atpx_priv.atpx_detected;
}
-bool radeon_has_atpx_dgpu_power_cntl(void) {
+bool radeon_has_atpx_dgpu_power_cntl(void)
+{
return radeon_atpx_priv.atpx.functions.power_cntl;
}
-bool radeon_is_atpx_hybrid(void) {
+bool radeon_is_atpx_hybrid(void)
+{
return radeon_atpx_priv.atpx.is_hybrid;
}
-bool radeon_atpx_dgpu_req_power_for_displays(void) {
+bool radeon_atpx_dgpu_req_power_for_displays(void)
+{
return radeon_atpx_priv.atpx.dgpu_req_power_for_displays;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-14 7:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <tencent_21616D4FB2F221FE67B71858B197C646AB08@qq.com>
2023-07-14 3:20 ` [PATCH] drm/radeon: ERROR: open brace '{' following function definitions go on the next line shijie001
2023-07-14 3:20 ` shijie001
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.