# \[PATCH 02/12\] OMAP: DSS2: add detect() to omap\_dss\_driver struct

- From: Tomi Valkeinen \<hidden\>
- Date: 2011-08-31 13:23:13 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2011/08/13461888
- Thread: https://ratatoskr.run/linux-omap/2011/08/13461862/t.md

```text
detect() can be used to probe if the display is connected.

Signed-off-by: Tomi Valkeinen <redacted>
---
 include/video/omapdss.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 8ed5a6c..a62f49a 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -560,6 +560,7 @@ struct omap_dss_driver {
 	u32 (*get_wss)(struct omap_dss_device *dssdev);
 
 	int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len);
+	bool (*detect)(struct omap_dss_device *dssdev);
 };
 
 int omap_dss_register_driver(struct omap_dss_driver *);
-- 
1.7.4.1

```
