gpio: Add ability to set gpios by the id in the table

Saves having to search the table each time if you want to be doing
frequent updates.