gpio: remove const modifier from gpiod_get_direction()