Skip to contentSkip to conversation

drm: bridge: dw-hdmi: remove unused hdmi_bus_fmt_is_yuv420

PATCH In review Neil Armstrong 2 participants 3 messages Apr 5, 2017 – Apr 6, 2017

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

PATCH 1/1 drm: bridge: dw-hdmi: remove unused hdmi_bus_fmt_is_yuv420

Remove usused yet hdmi_bus_fmt_is_yuv420 function.

Fixes def23aa7e982 ("drm: bridge: dw-hdmi: Switch to V4L bus format and encodings")
---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 14 --------------
 1 file changed, 14 deletions(-)
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +0 -14
index 84cc949..7dd6699 100644
@@ -605,20 +605,6 @@ static bool hdmi_bus_fmt_is_yuv422(unsigned int bus_format)
 	}
 }
 
-static bool hdmi_bus_fmt_is_yuv420(unsigned int bus_format)
-{
-	switch (bus_format) {
-	case MEDIA_BUS_FMT_UYYVYY8_0_5X24:
-	case MEDIA_BUS_FMT_UYYVYY10_0_5X30:
-	case MEDIA_BUS_FMT_UYYVYY12_0_5X36:
-	case MEDIA_BUS_FMT_UYYVYY16_0_5X48:
-		return true;
-
-	default:
-		return false;
-	}
-}
-
 static int hdmi_bus_fmt_color_depth(unsigned int bus_format)
 {
 	switch (bus_format) {
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
reviewer Acked-by on v1 1/1
#1 lore raw

Hi Neil,

Thank you for the patch.

Quoted 4 lines · On Wednesday 05 Apr 2017 09:32:59 Neil Armstrong wrote:

Remove usused yet hdmi_bus_fmt_is_yuv420 function.

Fixes def23aa7e982 ("drm: bridge: dw-hdmi: Switch to V4L bus format and

encodings") Signed-off-by: Neil Armstrong <[email protected]>

Quoted 29 lines
---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 14 --------------
 1 file changed, 14 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 84cc949..7dd6699 100644

drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +0 -14
@@ -605,20 +605,6 @@ static bool hdmi_bus_fmt_is_yuv422(unsigned int
 bus_format) }
 }
 
-static bool hdmi_bus_fmt_is_yuv420(unsigned int bus_format)
-{
-	switch (bus_format) {
-	case MEDIA_BUS_FMT_UYYVYY8_0_5X24:
-	case MEDIA_BUS_FMT_UYYVYY10_0_5X30:
-	case MEDIA_BUS_FMT_UYYVYY12_0_5X36:
-	case MEDIA_BUS_FMT_UYYVYY16_0_5X48:
-		return true;
-
-	default:
-		return false;
-	}
-}
-
 static int hdmi_bus_fmt_color_depth(unsigned int bus_format)
 {
 	switch (bus_format) {
Signature · 8 lines
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author Applied
#2 lore raw
Quoted 33 lines · Laurent Pinchart

Hi Neil,

Thank you for the patch.

Quoted 4 lines · On Wednesday 05 Apr 2017 09:32:59 Neil Armstrong wrote:

Remove usused yet hdmi_bus_fmt_is_yuv420 function.

Fixes def23aa7e982 ("drm: bridge: dw-hdmi: Switch to V4L bus format and

encodings") Signed-off-by: Neil Armstrong <[email protected]>

Quoted 21 lines
---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 14 --------------
 1 file changed, 14 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 84cc949..7dd6699 100644

drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +0 -9
@@ -605,20 +605,6 @@ static bool hdmi_bus_fmt_is_yuv422(unsigned int
 bus_format) }
 }
 
-static bool hdmi_bus_fmt_is_yuv420(unsigned int bus_format)
-{
-	switch (bus_format) {
-	case MEDIA_BUS_FMT_UYYVYY8_0_5X24:
-	case MEDIA_BUS_FMT_UYYVYY10_0_5X30:
-	case MEDIA_BUS_FMT_UYYVYY12_0_5X36:
-	case MEDIA_BUS_FMT_UYYVYY16_0_5X48:
-		return true;
-
Quoted 9 lines

drivers/gpu/drm/bridge/synopsys/dw-hdmi.c static bool hdmi_bus_fmt_is_yuv422(unsigned int bus_format) · line 610

Quoted 8 lines
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +0 -5
-	default:
-		return false;
-	}
-}
-
 static int hdmi_bus_fmt_color_depth(unsigned int bus_format)
 {
 	switch (bus_format) {

Applied to drm-misc-next

Thanks,
Neil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel