summaryrefslogtreecommitdiff
path: root/py/tests/cam.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-01-02 16:42:09 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-01-03 10:46:42 +0200
commitf1a098203be8c44a52ed5d2a72982a3f634d4df6 (patch)
treec916f481fb22a3002d56541346b15532fe46da83 /py/tests/cam.py
parentb11baff09f78a4a383f817ec35208ae8966ab832 (diff)
py: Move helpers to the pykms module
Instead of forcing applications to import the helpers manually, move them to pykms by turning it into a python module. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'py/tests/cam.py')
-rwxr-xr-xpy/tests/cam.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/py/tests/cam.py b/py/tests/cam.py
index b44f8f9..57d0c1a 100755
--- a/py/tests/cam.py
+++ b/py/tests/cam.py
@@ -3,8 +3,6 @@
import sys
import selectors
import pykms
-from helpers import *
-
w = 640
h = 480
@@ -48,7 +46,7 @@ def readvid(conn, mask):
fb = cap.dequeue()
if card.has_atomic:
- set_props(plane, {
+ plane.set_props({
"FB_ID": fb.id,
"CRTC_ID": crtc.id,
"SRC_W": fb.width << 16,