drm: remove useless parameters from drm_pick_cmdline_mode function
authorVincent Abriou <vincent.abriou@st.com>
Fri, 6 Jan 2017 16:44:43 +0000 (17:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 9 Jan 2017 10:18:41 +0000 (11:18 +0100)
drm_pick_cmdline_mode width and height parameters are useless.
Just remove them.

Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1483721084-20278-2-git-send-email-vincent.abriou@st.com
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/i915/intel_fbdev.c
include/drm/drm_fb_helper.h

index 730342cbe899b68f5e2533b5144f170afb83f0b2..0ab6aaacb7d685e7e6e4f6ee0864bb076c3d3ec4 100644 (file)
@@ -1752,8 +1752,7 @@ static bool drm_has_cmdline_mode(struct drm_fb_helper_connector *fb_connector)
        return fb_connector->connector->cmdline_mode.specified;
 }
 
-struct drm_display_mode *drm_pick_cmdline_mode(struct drm_fb_helper_connector *fb_helper_conn,
-                                                     int width, int height)
+struct drm_display_mode *drm_pick_cmdline_mode(struct drm_fb_helper_connector *fb_helper_conn)
 {
        struct drm_cmdline_mode *cmdline_mode;
        struct drm_display_mode *mode;
@@ -1871,7 +1870,7 @@ static bool drm_target_cloned(struct drm_fb_helper *fb_helper,
                if (!enabled[i])
                        continue;
                fb_helper_conn = fb_helper->connector_info[i];
-               modes[i] = drm_pick_cmdline_mode(fb_helper_conn, width, height);
+               modes[i] = drm_pick_cmdline_mode(fb_helper_conn);
                if (!modes[i]) {
                        can_clone = false;
                        break;
@@ -1993,7 +1992,7 @@ retry:
                              fb_helper_conn->connector->base.id);
 
                /* got for command line mode first */
-               modes[i] = drm_pick_cmdline_mode(fb_helper_conn, width, height);
+               modes[i] = drm_pick_cmdline_mode(fb_helper_conn);
                if (!modes[i]) {
                        DRM_DEBUG_KMS("looking for preferred mode on connector %d %d\n",
                                      fb_helper_conn->connector->base.id, fb_helper_conn->connector->tile_group ? fb_helper_conn->connector->tile_group->id : 0);
index 570c07d59d1ac4f7959f934bed671cdc609adf13..a46b19d9de0e49e512a5702230125435420df4a1 100644 (file)
@@ -447,7 +447,7 @@ retry:
                              connector->name);
 
                /* go for command line mode first */
-               modes[i] = drm_pick_cmdline_mode(fb_conn, width, height);
+               modes[i] = drm_pick_cmdline_mode(fb_conn);
 
                /* try for preferred next */
                if (!modes[i]) {
index 53687c5664b889e7de1c898e3d7f2198a20ccb92..e62e1cf22678474644c6aa94ab585135bb0f3d54 100644 (file)
@@ -295,8 +295,7 @@ struct drm_display_mode *
 drm_has_preferred_mode(struct drm_fb_helper_connector *fb_connector,
                        int width, int height);
 struct drm_display_mode *
-drm_pick_cmdline_mode(struct drm_fb_helper_connector *fb_helper_conn,
-                     int width, int height);
+drm_pick_cmdline_mode(struct drm_fb_helper_connector *fb_helper_conn);
 
 int drm_fb_helper_add_one_connector(struct drm_fb_helper *fb_helper, struct drm_connector *connector);
 int drm_fb_helper_remove_one_connector(struct drm_fb_helper *fb_helper,