core: kill chip iterators
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 26 Nov 2020 13:11:54 +0000 (14:11 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Dec 2020 14:57:15 +0000 (15:57 +0100)
commitd0a9ddcb9cfe199cffcb6946dcc8b6e358b128ff
treeef17d1432e6cfb55257096e8d07331bef1608d8a
parent5e9e7223a3633ee82b557d21b1f18aa15becd450
core: kill chip iterators

Chip iterators require the user to have permission to access all GPIO
chips. They also don't take into account symbolic links. In general
they're badly designed so remove them treewide in favor of scanning /dev
manually using the provided gpiod_is_gpiochip_device() helper.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
26 files changed:
bindings/cxx/chip.cpp
bindings/cxx/examples/Makefile.am
bindings/cxx/examples/gpiodetectcxx.cpp
bindings/cxx/examples/gpiofindcxx.cpp
bindings/cxx/examples/gpioinfocxx.cpp
bindings/cxx/gpiod.hpp
bindings/cxx/iter.cpp
bindings/cxx/tests/tests-chip.cpp
bindings/cxx/tests/tests-iter.cpp
bindings/python/examples/gpiodetect.py
bindings/python/examples/gpiofind.py
bindings/python/examples/gpioinfo.py
bindings/python/gpiodmodule.c
bindings/python/tests/gpiod_py_test.py
configure.ac
include/gpiod.h
lib/Makefile.am
lib/iter.c [deleted file]
tests/Makefile.am
tests/gpiod-test.h
tests/tests-iter.c [deleted file]
tools/gpiodetect.c
tools/gpiofind.c
tools/gpioinfo.c
tools/tools-common.c
tools/tools-common.h