[PATCH v2 1/7] selftests: gpio: rework and simplify test implementation