Skip to contentSkip to conversation

drm/connector: document DRM_MODE_COLORIMETRY_COUNT

PATCH Applied Javier Carrasco 4 participants 4 messages Sep 6, 2023 – Sep 11, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/connector: document DRM_MODE_COLORIMETRY_COUNT

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.

---
Changes in v2:
- Remove applied changes in linux-next (supported_colorspaces
documentation)
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 include/drm/drm_connector.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/drm/drm_connector.h +2 -1
index d300fde6c1a4..18cf46e3478b 100644
@@ -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
 };
 

---
base-commit: 65d6e954e37872fd9afb5ef3fc0481bb3c2f20f4
change-id: 20230906-topic-drm_connector_doc-42dae3ba43c6

Best regards,

Signature · 1 line
Javier Carrasco <[email protected]>
maintainer Applied
#1 lore raw

Re: (subset) [PATCH v2] drm/connector: document DRM_MODE_COLORIMETRY_COUNT

Quoted 6 lines · Javier Carrasco

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).

Thanks!
Maxime

#2 lore raw

Re: (subset) [PATCH v2] drm/connector: document DRM_MODE_COLORIMETRY_COUNT

Quoted 9 lines · Maxime Ripard
Quoted 6 lines · Javier Carrasco

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.

Quoted 4 lines

Thanks!
Maxime

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#3 lore raw

Re: (subset) [PATCH v2] drm/connector: document DRM_MODE_COLORIMETRY_COUNT

Quoted 9 lines · Jani Nikula
Quoted 8 lines · Maxime Ripard
Quoted 6 lines · Javier Carrasco

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.

Quoted 4 lines
Quoted 1 line

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.

Quoted 9 lines

Anyway, just for future reference, the merged patch is fine.

BR,
Jani.

Quoted 3 lines

Thanks!
Maxime

Signature · 1 line
~Randy