camera: mediatek: drv: iopipe: src: use switch-case instead of static variable

Avoid declaring static variable, so use switch-case instead of it.

BUG=b:260981920
TEST=open/close camera

Change-Id: I44c7fca62c0ef82f27014ed43bd7188d71c0725b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/camera/+/4770496
Auto-Submit: becker hsieh <[email protected]>
Commit-Queue: becker hsieh <[email protected]>
Reviewed-by: Ren-Pei Zeng <[email protected]>
Tested-by: becker hsieh <[email protected]>
2 files changed
tree: 249d6ec25101f6078a80b2a1b77a250d4ffdf6fd
  1. hal/
  2. .gitignore
  3. .presubmitignore
  4. DIR_METADATA
  5. OWNERS
  6. README.md
README.md

Chrome OS Platform Camera

This repository hosts all the platform camera code contributed by partners and vendors.