drm/dp: add drm_dp_phy_name() for getting DP PHY name
authorJani Nikula <jani.nikula@intel.com>
Mon, 15 Aug 2022 08:58:34 +0000 (11:58 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 30 Aug 2022 08:02:42 +0000 (11:02 +0300)
commit5b04aab6d49578eacd6d341e281c70a769f96126
tree8f5b7e6c8626ed8fe7bac0e481aeed24d9169829
parent55453c0914d9b81e75c5c83adb2dd9382da2c79d
drm/dp: add drm_dp_phy_name() for getting DP PHY name

Add a helper for getting the DP PHY name. In the interest of caller
simplicity and to avoid allocations and passing in of buffers, duplicate
the const strings to return. It's a minor penalty to pay for simplicity
in all the call sites.

v2: Rebase, add kernel-doc, ensure non-NULL always

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b08dc12a7e621a48ec35546d6cd1ed4b1434810d.1660553850.git.jani.nikula@intel.com
drivers/gpu/drm/display/drm_dp_helper.c
include/drm/display/drm_dp_helper.h