Skip to contentSkip to conversation

drivers: video: drop unused of_display_timings_exist()

PATCH Applied Antony Pavlov 2 participants 2 messages Apr 12, 2017 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: video: drop unused of_display_timings_exist()

---
 drivers/video/of_display_timing.c | 19 -------------------
 1 file changed, 19 deletions(-)
drivers/video/of_display_timing.c +0 -19
index 6a5bf62a3..20f9354a1 100644
@@ -188,22 +188,3 @@ entryfail:
 	return NULL;
 }
 EXPORT_SYMBOL_GPL(of_get_display_timings);
-
-/**
- * of_display_timings_exist - check if a display-timings node is provided
- * @np: device_node with the timing
- **/
-int of_display_timings_exist(struct device_node *np)
-{
-	struct device_node *timings_np;
-
-	if (!np)
-		return -EINVAL;
-
-	timings_np = of_parse_phandle(np, "display-timings", 0);
-	if (!timings_np)
-		return -EINVAL;
-
-	return 1;
-}
-EXPORT_SYMBOL_GPL(of_display_timings_exist);
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Antony Pavlov
---
 drivers/video/of_display_timing.c | 19 -------------------
 1 file changed, 19 deletions(-)

Applied, thanks

Sascha

Quoted 32 lines
drivers/video/of_display_timing.c +0 -19
index 6a5bf62a3..20f9354a1 100644
@@ -188,22 +188,3 @@ entryfail:
 	return NULL;
 }
 EXPORT_SYMBOL_GPL(of_get_display_timings);
-
-/**
- * of_display_timings_exist - check if a display-timings node is provided
- * @np: device_node with the timing
- **/
-int of_display_timings_exist(struct device_node *np)
-{
-	struct device_node *timings_np;
-
-	if (!np)
-		return -EINVAL;
-
-	timings_np = of_parse_phandle(np, "display-timings", 0);
-	if (!timings_np)
-		return -EINVAL;
-
-	return 1;
-}
-EXPORT_SYMBOL_GPL(of_display_timings_exist);
Signature · 1 line
2.11.0
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox