[PATCH 6.3 10/45] gpiolib: fix allocation of mixed dynamic/static GPIOs