drm/amd/display: Move connector debugfs to drm
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>
Thu, 19 May 2022 09:51:49 +0000 (15:21 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 23 May 2022 08:27:44 +0000 (11:27 +0300)
commit4cd79f614b501e496ee8e4181d528c0cc1cb4e18
treed7004e8841861b0536895240049b5c60aeb05f8a
parentfa373eb2190115ef2c3597f89c12350d0a250eb0
drm/amd/display: Move connector debugfs to drm

As drm_connector already have the display_info, instead of creating
"output_bpc" debugfs in vendor specific driver, move the logic to
the drm layer.

This patch will also move "Current" bpc to the crtc debugfs from
connector debugfs, since we are getting this info from crtc_state.

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220519095149.3560034-4-bhanuprakash.modem@intel.com
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.h