treewide: kill global line lookup
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 2 Dec 2020 11:10:24 +0000 (12:10 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Dec 2020 14:56:57 +0000 (15:56 +0100)
commitfa1fe46653edbefd5c536300422402d9597c7b90
tree8e95e1a909c004831b37bd73ec49f913e038d42e
parent2c98cd12a6fee22f15c8c716a4c6d7fa98812f78
treewide: kill global line lookup

Global line lookup doesn't really work correctly because GPIO line names
are not unique. We'd have to return a list of matching lines. Also: not
all chips may be accessible by user in which case the chip iterator will
fail. We'll soon be removing chip iterators entirely so for now drop the
global line lookup and let users iterate over chips themselves.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
bindings/cxx/examples/gpiofindcxx.cpp
bindings/cxx/gpiod.hpp
bindings/cxx/line.cpp
bindings/cxx/tests/tests-line.cpp
bindings/python/gpiodmodule.c
bindings/python/tests/gpiod_py_test.py
include/gpiod.h
lib/helpers.c
tests/tests-line.c
tools/gpiofind.c