gpiolib: Make WM831x GPIO count dynamic