Skip to contentSkip to conversation

drm/omapdrm: Remove unused struct csc_coef_rgb2yuv

PATCH In review Yuan Can 3 participants 3 messages Oct 14, 2022 – Dec 16, 2022

Subsystems (3)
lore
Share & tools
lore

Yuan Can

author
#0 lore raw

PATCH v2 1/1 drm/omapdrm: Remove unused struct csc_coef_rgb2yuv

After commit 64ff18911878, struct csc_coef_rgb2yuv is not used any more and can be removed as well.

Fixes 64ff18911878 ("drm/omap: Enable COLOR_ENCODING and COLOR_RANGE properties for planes")

---
changes in v2:
- adjust commit msg

---
 drivers/gpu/drm/omapdrm/dss/dispc.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/omapdrm/dss/dispc.c +0 -5
index 0ee344ebcd1c..aacad5045e95 100644
@@ -855,11 +855,6 @@ struct csc_coef_yuv2rgb {
 	bool full_range;
 };
 
-struct csc_coef_rgb2yuv {
-	int yr, yg, yb, cbr, cbg, cbb, crr, crg, crb;
-	bool full_range;
-};
-
 static void dispc_ovl_write_color_conv_coef(struct dispc_device *dispc,
 					    enum omap_plane_id plane,
 					    const struct csc_coef_yuv2rgb *ct)
Signature · 1 line
2.17.1
Reviewed-by on v2 1/1
#1 lore raw

Hi Yuan,

Thank you for the patch.

Quoted 5 lines · Yuan Can

After commit 64ff18911878, struct csc_coef_rgb2yuv is not used any more and can be removed as well.

Fixes 64ff18911878 ("drm/omap: Enable COLOR_ENCODING and COLOR_RANGE properties for planes")
Quoted 23 lines

---
changes in v2:
- adjust commit msg

---
 drivers/gpu/drm/omapdrm/dss/dispc.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/omapdrm/dss/dispc.c +0 -5
index 0ee344ebcd1c..aacad5045e95 100644
@@ -855,11 +855,6 @@ struct csc_coef_yuv2rgb {
 	bool full_range;
 };
 
-struct csc_coef_rgb2yuv {
-	int yr, yg, yb, cbr, cbg, cbb, crr, crg, crb;
-	bool full_range;
-};
-
 static void dispc_ovl_write_color_conv_coef(struct dispc_device *dispc,
 					    enum omap_plane_id plane,
 					    const struct csc_coef_yuv2rgb *ct)
Signature · 3 lines
Regards,

Laurent Pinchart
maintainer
#2 lore raw
In reply to Yuan Can
Quoted 18 lines · Yuan Can

After commit 64ff18911878, struct csc_coef_rgb2yuv is not used any more and can be removed as well.

Fixes 64ff18911878 ("drm/omap: Enable COLOR_ENCODING and COLOR_RANGE properties for planes")

---
changes in v2:
- adjust commit msg

---
  drivers/gpu/drm/omapdrm/dss/dispc.c | 5 -----
  1 file changed, 5 deletions(-)
drivers/gpu/drm/omapdrm/dss/dispc.c +0 -0
index 0ee344ebcd1c..aacad5045e95 100644
@@ -855,11 +855,6 @@ struct csc_coef_yuv2rgb {
  	bool full_range;

drivers/gpu/drm/omapdrm/dss/dispc.c struct csc_coef_yuv2rgb { · line 860

Quoted 10 lines
drivers/gpu/drm/omapdrm/dss/dispc.c +0 -5
  };
 
-struct csc_coef_rgb2yuv {
-	int yr, yg, yb, cbr, cbg, cbb, crr, crg, crb;
-	bool full_range;
-};
-
  static void dispc_ovl_write_color_conv_coef(struct dispc_device *dispc,
  					    enum omap_plane_id plane,
  					    const struct csc_coef_yuv2rgb *ct)

Thanks, applying to drm-misc.

Tomi