pd: Translate host command parameters with lookup tables
pd: Translate host command parameters with lookup tables

We have giant switch-case just for translating USB PD host command
parameters. Let's change this to lookup tables so that it's clearer and
also reduces code size.

BUG=chrome-os-partner:32203
TEST=make buildall
BRANCH=None

Change-Id: Ieef0e989bd0faa95e261748a73250c53f0942dad
Signed-off-by: Vic Yang <5fd92abeee651458f98e2856f4f200ee971cee4d@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/220511
Reviewed-by: Alec Berg <1a4429eeda29095a12e19a73405f80f5b7f37a63@chromium.org>

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