Revert "py: add open_modesetting_card"
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 17 Jan 2019 15:24:51 +0000 (17:24 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 17 Jan 2019 15:24:51 +0000 (17:24 +0200)
This reverts commit 27f1c296c4f5996227b28215400c787ea018862b.

py/pykms/pykmsbase.cpp
py/tests/test.py

index 4b46d55..668e6e3 100644 (file)
@@ -20,8 +20,6 @@ static vector<unique_ptr<T, py::nodelete>> convert_vector(const vector<T*>& sour
 void init_pykmsbase(py::module &m)
 {
        py::class_<Card>(m, "Card")
-                       .def_static("open_modesetting_card", []() { return Card::open_modesetting_card(); })
-
                        .def(py::init<>())
                        .def(py::init<const string&>())
                        .def(py::init<const string&, uint32_t>())
index 45cf6e9..83cf16a 100755 (executable)
@@ -13,7 +13,7 @@ args = parser.parse_args()
 if args.omap:
        card = pykms.OmapCard()
 else:
-       card = pykms.Card.open_modesetting_card()
+       card = pykms.Card()
 
 res = pykms.ResourceManager(card)
 conn = res.reserve_connector(args.connector)