]> 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)
commit7c8fe5d8c7766f4f79436c8dfe82b61d51ff0f4c
tree98fc75ae4bfb1358f98bfc3c038cc190ba039e72
parentbbcf0b432a05db175889d81ef48c78ddd5ffb1f2
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