bcmxcp: Refactor code, use if-else if rather than 4 if statements
bcmxcp: Reformat code, remove tabs in the middle of lines. No code changes

After re-reading the developer code style guide, use spaces and not tabs
in the middle of lines to align text
bcmxcp: Reformat code, remove tabs in the middle of lines. No code changes

After re-reading the developer code style guide, use spaces and not tabs
in the middle of lines to align text
bcmxcp: Code restructure, declare variables at top of method

After re-reading code style, compiled with -pedantic, and got some warnings, so
moved variable declarations to the top of methods