]> 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)
commitdcc9a32c77f8525804f8cbcfd3ace35e557ed5bb
tree98fc75ae4bfb1358f98bfc3c038cc190ba039e72
parentf22e293838ee84ab82dadbdb5410916f226c4d84
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