]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: use macro to get pptable members
authorChengming Gui <Jack.Gui@amd.com>
Wed, 17 Mar 2021 09:11:53 +0000 (17:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:41:10 +0000 (22:41 -0400)
commit7077b19a38240abe4d76d688e52681ad1ec47304
tree98fc75ae4bfb1358f98bfc3c038cc190ba039e72
parentfbe8115c6ab77eecbabbac23379132ec5e8b273a
drm/amd/pm: use macro to get pptable members

Use macro to get the pptable members for different pptable structures.

v2: abstract the table operations especially get the table members
to simplify cover the two different pptable structures.
v3: move pptable operations related structures and functions into ppt.c
v4: use macro to simplify the operation to get pptable members
v5: fix parameter reference error and add dump pptable support for
beige_goby

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Jiansong Chen <Jiansong.Chen@amd.com>
Reviewed-by: Evan Quan <Evan.Quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c