Cherry-pick cosmetic fixes and memory.c from feature-encx28j600-wip to master