device: reorganize code to not use an useless prototype

This also removes useless comments about static methods