drm/amdgpu: drop BOOLEAN define in display part
Subsystems (3)
PATCH 1/1 drm/amdgpu: drop BOOLEAN define in display part
use bool directly
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 2 +- drivers/gpu/drm/amd/display/dc/dm_pp_smu.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +1 -1
@@ -810,7 +810,7 @@ pp_nv_set_hard_min_uclk_by_freq(struct pp_smu *pp, int mhz) }static enum pp_smu_status pp_nv_set_pstate_handshake_support ( -struct pp_smu *pp,BOOLEAN pstate_handshake_supported) +struct pp_smu *pp,bool pstate_handshake_supported) {const struct dc_context *ctx = pp->dm;struct amdgpu_device *adev = ctx->driver_context;
drivers/gpu/drm/amd/display/dc/dm_pp_smu.h +1 -3
@@ -30,8 +30,6 @@* interface to PPLIB/SMU to setup clocks and pstate requirements on SoC */ -typedef bool BOOLEAN ; -enum pp_smu_ver {/* * PP_SMU_INTERFACE_X should be interpreted as the interface defined
@@ -240,7 +238,7 @@ struct pp_smu_funcs_nv {* DC hardware */ enum pp_smu_status (*set_pstate_handshake_support)(struct pp_smu *pp, -BOOLEAN pstate_handshake_supported); +bool pstate_handshake_supported); };#define PP_SMU_NUM_SOCCLK_DPM_LEVELS 8
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
Regards,
Guchun
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Flora Cui
Sent: Monday, September 14, 2020 2:37 PM
To: [email protected]
Cc: Cui, Flora <[email protected]>
Subject: [PATCH] drm/amdgpu: drop BOOLEAN define in display part
use bool directly
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 2 +- drivers/gpu/drm/amd/display/dc/dm_pp_smu.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +1 -1
@@ -810,7 +810,7 @@ pp_nv_set_hard_min_uclk_by_freq(struct pp_smu *pp, int mhz) }static enum pp_smu_status pp_nv_set_pstate_handshake_support ( -struct pp_smu *pp,BOOLEAN pstate_handshake_supported) +struct pp_smu *pp,bool pstate_handshake_supported) {const struct dc_context *ctx = pp->dm; struct amdgpu_device *adev = ctx->driver_context; diff --git a/drivers/gpu/drm/amd/display/dc/dm_pp_smu.h b/drivers/gpu/drm/amd/display/dc/dm_pp_smu.h
index ae608c329366..3586934df25f 100644
drivers/gpu/drm/amd/display/dc/dm_pp_smu.h +0 -2
@@ -30,8 +30,6 @@* interface to PPLIB/SMU to setup clocks and pstate requirements on SoC */ -typedef bool BOOLEAN ; -enum pp_smu_ver {/* * PP_SMU_INTERFACE_X should be interpreted as the interface defined @@ -240,7 +238,7 @@ struct pp_smu_funcs_nv {
* DC hardware
*/
enum pp_smu_status (*set_pstate_handshake_support)(struct pp_smu *pp,
- BOOLEAN pstate_handshake_supported);
+ bool pstate_handshake_supported);
};
#define PP_SMU_NUM_SOCCLK_DPM_LEVELS 8
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cguchun.chen%40amd.com%7Cd81ec3c18004410be66408d858789afb%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637356622910218361&sdata=pnVn%2BaYYczysuFlEljvG93IZO0TsLnxvMv09F1YYV7w%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx