eeprom.js: retrieve mux function from debugfs for pins that are marked as used
eeprom.js: retrieve mux function from debugfs for pins that are marked as used

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>

---
v2:
* Don't store 'function' if it cannot be properly read
* Fixed an unrelated whitespace error (really wrong commit for it)
* Minor coding style fix-ups

Signed-off-by: Jason Kridner <a46e7d934a9177a152637f238a54ea28cd131548@ti.com>

jadonk/bonescript,il9ue/bonesimulator,weboide/antl,beagleboard/bonescript,jadonk/bonescript,beagleboard/bonescript,mwillbanks/octalbonescript,risebox/bonescript,risebox/bonescript,il9ue/bonesimulator,weboide/antl,theoctal/octalbonescript