gpio: add static to get_function()