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)
commit297d34e73d491a3edbd6e8c31d33ec90447a908b
treef1c00d578b511db2e8e78e09263bcc05f0f7b1fb
parent7ff22787ba49c2e66dcec92f3e2b79ef6b6a0d71
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