Commit 28c03a44 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/edid: Make drm_get_cea_aspect_ratio() static

drm_get_cea_aspect_ratio() is not used outside drm_edid.c.
Make it static.

Cc: Wayne Lin <waynelin@amd.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191004141914.20600-1-ville.syrjala@linux.intel.comReviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
parent 2f77d82e
...@@ -3206,18 +3206,10 @@ static bool drm_valid_cea_vic(u8 vic) ...@@ -3206,18 +3206,10 @@ static bool drm_valid_cea_vic(u8 vic)
return vic > 0 && vic < ARRAY_SIZE(edid_cea_modes); return vic > 0 && vic < ARRAY_SIZE(edid_cea_modes);
} }
/** static enum hdmi_picture_aspect drm_get_cea_aspect_ratio(const u8 video_code)
* drm_get_cea_aspect_ratio - get the picture aspect ratio corresponding to
* the input VIC from the CEA mode list
* @video_code: ID given to each of the CEA modes
*
* Returns picture aspect ratio
*/
enum hdmi_picture_aspect drm_get_cea_aspect_ratio(const u8 video_code)
{ {
return edid_cea_modes[video_code].picture_aspect_ratio; return edid_cea_modes[video_code].picture_aspect_ratio;
} }
EXPORT_SYMBOL(drm_get_cea_aspect_ratio);
/* /*
* Calculate the alternate clock for HDMI modes (those from the HDMI vendor * Calculate the alternate clock for HDMI modes (those from the HDMI vendor
......
...@@ -481,7 +481,6 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid); ...@@ -481,7 +481,6 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid);
int drm_add_override_edid_modes(struct drm_connector *connector); int drm_add_override_edid_modes(struct drm_connector *connector);
u8 drm_match_cea_mode(const struct drm_display_mode *to_match); u8 drm_match_cea_mode(const struct drm_display_mode *to_match);
enum hdmi_picture_aspect drm_get_cea_aspect_ratio(const u8 video_code);
bool drm_detect_hdmi_monitor(struct edid *edid); bool drm_detect_hdmi_monitor(struct edid *edid);
bool drm_detect_monitor_audio(struct edid *edid); bool drm_detect_monitor_audio(struct edid *edid);
enum hdmi_quantization_range enum hdmi_quantization_range
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment