gpio: move sysfs support to its own file