camera/hal/mediatek: Fix compile error for memcpy in complex type

As part of an ongoing effort to uprev glibc to 2.41 (see BUG), we are
getting compile errors with recent clang revisions concerning memcpy
operations on non-trivially-copyable types.
To fix this C-style memcpy operation, just static_cast the type to
void*.

BUG=b:387993322
TEST=emerge-kukui media-libs/cros-camera-hal-mtk; CQ.

Change-Id: If5fc66d4b8c11859d6ec17c865cdaceb297d3dad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/camera/+/6793450
Reviewed-by: Ryota Okuji <[email protected]>
Commit-Queue: Sergio Andres Gomez Del Real <[email protected]>
Tested-by: Sergio Andres Gomez Del Real <[email protected]>
Reviewed-by: George Burgess <[email protected]>
Reviewed-by: Ricky Liang <[email protected]>
1 file changed
tree: e81888a8b0345f4608b203e3cb009fd2be92e0cc
  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.