summaryrefslogtreecommitdiff
path: root/py/helpers.py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-14 22:20:50 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-16 21:45:26 +0300
commit7881bfd6586bd8ffa9b766cdba332c7a1015c9dd (patch)
tree1fe85dcc749aa5762ca342c2d94e28c245309efe /py/helpers.py
parent84d89b1659b6eb3e7707f2fe107b9cada516f053 (diff)
py: use ResourceManager
Diffstat (limited to 'py/helpers.py')
-rw-r--r--py/helpers.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/py/helpers.py b/py/helpers.py
index e92163c..fd67d41 100644
--- a/py/helpers.py
+++ b/py/helpers.py
@@ -52,15 +52,3 @@ def disable_planes(card):
if areq.commit_sync() != 0:
print("disabling planes failed")
-
-def get_crtc_for_connector(conn):
- crtc = conn.get_current_crtc()
-
- if crtc != None:
- return crtc
-
- for crtc in conn.get_possible_crtcs():
- if crtc.mode_valid == False:
- return crtc
-
- raise RuntimeError("No free crtc found")