device: reorganize code to not use an useless prototype
device: reorganize code to not use an useless prototype

This also removes useless comments about static methods

nacho/libgusb,robert-ancell/libgusb,hughsie/libgusb,hughsie/libgusb,robert-ancell/libgusb,nacho/libgusb,hughsie/libgusb