Skip to contentSkip to conversation

drm/omapdrm: Remove unused struct csc_coef_rgb2yuv

PATCH Superseded Yuan Can 2 participants 3 messages Sep 27, 2022 – Oct 13, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yuan Can

author
#0 lore raw

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

After commit 64ff18911878("drm/omap: Enable COLOR_ENCODING and COLOR_RANGE properties for planes"), no one use struct csc_coef_rgb2yuv, so remove it.

---
 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
#1 lore raw
Quoted 1 line · Yuan Can

After commit 64ff18911878("drm/omap: Enable COLOR_ENCODING and COLOR_RANGE

Hi yuan,

This is not a valid Fixes: tag.

Add to your ~/.gitconfig and add:

[pretty]

        fixes = Fixes: %h (\"%s\")

You can then do

git log --pretty=fixes 64ff18911878

and get:

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

Which is the correct format. Don't wrap it, if it is long.

Thanks,
Cai

Quoted 26 lines

properties for planes"), no one use struct csc_coef_rgb2yuv, so remove it.

---
 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
author
#2 lore raw
Quoted 13 lines · Cai Huoqing
Quoted 1 line · Yuan Can

After commit 64ff18911878("drm/omap: Enable COLOR_ENCODING and COLOR_RANGE

Hi yuan,

This is not a valid Fixes: tag.

Add to your ~/.gitconfig and add:

[pretty]

         fixes = Fixes: %h (\"%s\")

You can then do

Quoted 7 lines

git log --pretty=fixes 64ff18911878

and get:

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

Which is the correct format. Don't wrap it, if it is long.

Ok, thanks for the advice! I will resend the patch with the valid Fixes: tag.

Best regards,

Yuan Can