drm/i915/dp: Extract drm_dp_read_sink_count()
authorLyude Paul <lyude@redhat.com>
Wed, 26 Aug 2020 18:24:52 +0000 (14:24 -0400)
committerLyude Paul <lyude@redhat.com>
Mon, 31 Aug 2020 23:10:09 +0000 (19:10 -0400)
commit4778ff052812029bc076f5e78eff3ba1851cbea7
treee846e147b985e3d5a479d9186a83b8998fef9f33
parent693c3ec5976eb4b66cbd4f3f1c701a6f0ae1c9b9
drm/i915/dp: Extract drm_dp_read_sink_count()

And of course, we'll also need to read the sink count from other drivers
as well if we're checking whether or not it's supported. So, let's
extract the code for this into another helper.

v2:
* Fix drm_dp_dpcd_readb() ret check
* Add back comment and move back sink_count assignment in intel_dp_get_dpcd()
v5:
* Change name from drm_dp_get_sink_count() to drm_dp_read_sink_count()
* Also, add "See also:" section to kdocs

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Link: https://patchwork.freedesktop.org/patch/msgid/20200826182456.322681-17-lyude@redhat.com
drivers/gpu/drm/drm_dp_helper.c
drivers/gpu/drm/i915/display/intel_dp.c
include/drm/drm_dp_helper.h