Rearrange lightbar.c to separate IC control from pattern logic
Rearrange lightbar.c to separate IC control from pattern logic

Just refactoring the code to make it neater. No functional changes.

BUG=chrome-os-partner:28596
BRANCH=ToT
TEST=make buildall -j

Change-Id: Ib436369c2242de3b0fdacf65404eaba4a309e73b
Signed-off-by: Bill Richardson <129945214b1d548d8e49b6c29c43094f8c78057f@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/199880
Reviewed-by: Randall Spangler <62698fdbb84d1779579ee80c3f39fac22017e5bc@chromium.org>

fourier49/BIZ_EC,fourier49/BZ_DEV_EC,fourier49/BZ_DEV_EC,fourier49/BIZ_EC,eatbyte/chromium-ec,coreboot/chrome-ec,thehobn/ec,akappy7/ChromeOS_EC_LED_Diagnostics,longsleep/ec,coreboot/chrome-ec,coreboot/chrome-ec,gelraen/cros-ec,longsleep/ec,coreboot/chrome-ec,thehobn/ec,eatbyte/chromium-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,longsleep/ec,md5555/ec,alterapraxisptyltd/chromium-ec,coreboot/chrome-ec,mtk09422/chromiumos-platform-ec,fourier49/BZ_DEV_EC,thehobn/ec,md5555/ec,mtk09422/chromiumos-platform-ec,thehobn/ec,fourier49/BZ_DEV_EC,akappy7/ChromeOS_EC_LED_Diagnostics,fourier49/BIZ_EC,gelraen/cros-ec,fourier49/BIZ_EC,alterapraxisptyltd/chromium-ec,eatbyte/chromium-ec,gelraen/cros-ec,longsleep/ec,eatbyte/chromium-ec,akappy7/ChromeOS_EC_LED_Diagnostics,md5555/ec,akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,gelraen/cros-ec,mtk09422/chromiumos-platform-ec,md5555/ec,mtk09422/chromiumos-platform-ec