uart: add a lint target and fix up lint warnings.