[PATCH 4.19 336/422] gpiolib: Fix gpio_direction_* for single direction GPIOs