Message ID | 20230906-topic-drm_connector_doc-v2-1-1f2dcaa43269@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] drm/connector: document DRM_MODE_COLORIMETRY_COUNT | expand |
On Thu, 07 Sep 2023, Maxime Ripard <mripard@kernel.org> wrote: > On Wed, 06 Sep 2023 22:47:38 +0200, Javier Carrasco wrote: >> The drm_colorspace enum member DRM_MODE_COLORIMETRY_COUNT has been >> properly documented by moving the description out of the enum to the >> member description list to get rid of an additional warning and improve >> documentation clarity. >> >> > > Applied to drm/drm-misc (drm-misc-next). After the fact, but adding /* private: */ would've been an alternative approach. I think support for that for enums should be there. Anyway, just for future reference, the merged patch is fine. BR, Jani. > > Thanks! > Maxime >
On 9/11/23 03:23, Jani Nikula wrote: > On Thu, 07 Sep 2023, Maxime Ripard <mripard@kernel.org> wrote: >> On Wed, 06 Sep 2023 22:47:38 +0200, Javier Carrasco wrote: >>> The drm_colorspace enum member DRM_MODE_COLORIMETRY_COUNT has been >>> properly documented by moving the description out of the enum to the >>> member description list to get rid of an additional warning and improve >>> documentation clarity. >>> >>> >> >> Applied to drm/drm-misc (drm-misc-next). > > After the fact, but adding /* private: */ would've been an alternative > approach. I think support for that for enums should be there. Yes, that was the first patch that I sent.... but nobody picked it up. > > Anyway, just for future reference, the merged patch is fine. > > BR, > Jani. > >> >> Thanks! >> Maxime
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index d300fde6c1a4..18cf46e3478b 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h @@ -498,6 +498,8 @@ enum drm_privacy_screen_status { * ITU-R BT.601 colorimetry format * The DP spec does not say whether this is the 525 or the 625 * line version. + * @DRM_MODE_COLORIMETRY_COUNT: + * Not a valid value; merely used four counting */ enum drm_colorspace { /* For Default case, driver will set the colorspace */ @@ -522,7 +524,6 @@ enum drm_colorspace { DRM_MODE_COLORIMETRY_RGB_WIDE_FIXED = 13, DRM_MODE_COLORIMETRY_RGB_WIDE_FLOAT = 14, DRM_MODE_COLORIMETRY_BT601_YCC = 15, - /* not a valid value; merely used for counting */ DRM_MODE_COLORIMETRY_COUNT };