]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_proto: Use ec_command for check_features
authorPrashant Malani <pmalani@chromium.org>
Mon, 4 Oct 2021 17:07:12 +0000 (10:07 -0700)
committerBenson Leung <bleung@chromium.org>
Sun, 31 Oct 2021 22:52:55 +0000 (15:52 -0700)
commit4b6e11444eb59f04674a42edbf5c8b144af79aae
treef1c00d578b511db2e8e78e09263bcc05f0f7b1fb
parentcbcb93a58893b88d0d5ba7b6ea9a9a34b25320a0
platform/chrome: cros_ec_proto: Use ec_command for check_features

Use the existing cros_ec_command() for cros_ec_check_features(). This
eliminates an unnecessary duplication of the memory allocation/free and
memory copy code.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20211004170716.86601-2-pmalani@chromium.org
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_proto.c