drm: Rename MODE_UNVERIFIED to MODE_STALE
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 10 Dec 2015 20:39:08 +0000 (22:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Dec 2015 08:26:47 +0000 (09:26 +0100)
MODE_UNVERIFIED actually means that the mode came from a previous probe,
and if the new probe doesn't produce a matching mode it will get pruned
from the list. Rename the flag to MODE_STALE to better convey the
meaning.

v2: Rebased due to conflicts with Daniel's doc stuff

Cc: Adam Jackson <ajax@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1449779948-10906-1-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/drm_probe_helper.c
include/drm/drm_modes.h

index 1892e615528aa8d54c59c173866af58f2bfc2ff3..6cd582fdcc4b882c9a46d696571444b91bc4634a 100644 (file)
@@ -1074,7 +1074,7 @@ static const char * const drm_mode_status_names[] = {
        MODE_STATUS(ONE_SIZE),
        MODE_STATUS(NO_REDUCED),
        MODE_STATUS(NO_STEREO),
-       MODE_STATUS(UNVERIFIED),
+       MODE_STATUS(STALE),
        MODE_STATUS(BAD),
        MODE_STATUS(ERROR),
 };
index b691253aa7529c0bf8e03d5b3795bf32554f959a..3bdc8684fe58c633b0c59f3c57c9e0a40d857c36 100644 (file)
@@ -146,9 +146,9 @@ static int drm_helper_probe_single_connector_modes_merge_bits(struct drm_connect
 
        DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", connector->base.id,
                        connector->name);
-       /* set all modes to the unverified state */
+       /* set all old modes to the stale state */
        list_for_each_entry(mode, &connector->modes, head)
-               mode->status = MODE_UNVERIFIED;
+               mode->status = MODE_STALE;
 
        old_status = connector->status;
 
index 9e6d7a1cd19b678da4cb13f145b56603e434d88e..d7445ccd958d606b87d80b77717c1ab199db59ca 100644 (file)
@@ -73,7 +73,7 @@
  * @MODE_ONE_SIZE: only one resolution is supported
  * @MODE_NO_REDUCED: monitor doesn't accept reduced blanking
  * @MODE_NO_STEREO: stereo modes not supported
- * @MODE_UNVERIFIED: mode needs to reverified
+ * @MODE_STALE: mode has become stale
  * @MODE_BAD: unspecified reason
  * @MODE_ERROR: error condition
  *
@@ -117,7 +117,7 @@ enum drm_mode_status {
        MODE_ONE_SIZE,
        MODE_NO_REDUCED,
        MODE_NO_STEREO,
-       MODE_UNVERIFIED = -3,
+       MODE_STALE = -3,
        MODE_BAD = -2,
        MODE_ERROR = -1
 };