rockchip: gpio: Implement the get_function() method