]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_proto: Use EC struct for features
authorPrashant Malani <pmalani@chromium.org>
Mon, 4 Oct 2021 17:07:09 +0000 (10:07 -0700)
committerBenson Leung <bleung@chromium.org>
Sun, 31 Oct 2021 22:52:39 +0000 (15:52 -0700)
commitcbcb93a58893b88d0d5ba7b6ea9a9a34b25320a0
tree78be3c7703e7f4caed87987ba43b970c808944ac
parente706885ce21454f70027c3a13eaec49ad11ad13e
platform/chrome: cros_ec_proto: Use EC struct for features

The Chrome EC's features are returned through an
ec_response_get_features struct, but they are stored in an independent
array. Although the two are effectively the same at present (2 unsigned
32 bit ints), there is the possibility that they could go out of sync.
Avoid this by only using the EC struct to store the features.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20211004170716.86601-1-pmalani@chromium.org
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/mfd/cros_ec_dev.c
drivers/platform/chrome/cros_ec_proto.c
include/linux/platform_data/cros_ec_proto.h