eal: fix checkpatch issues before moving code