platform/chrome: cros_ec_proto: Mark outdata as const
authorStephen Boyd <swboyd@chromium.org>
Tue, 3 Oct 2023 00:34:28 +0000 (17:34 -0700)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 4 Oct 2023 03:40:54 +0000 (11:40 +0800)
commit2f3dd39e2b492bec366487a2c9bcbdbd7792f77c
tree925add8f823ee0ff3d47c9696d30d93c2ddf14af
parent14e7c01cc3494b75c3ff1d099a2f5f76b1fcb01d
platform/chrome: cros_ec_proto: Mark outdata as const

The 'outdata' is copied to the data buffer in cros_ec_cmd() before being
sent over to the EC. Mark the argument as const so that callers can pass
const pointers to this function and so that callers know the data won't
be modified.

Cc: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20231003003429.1378109-5-swboyd@chromium.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_proto.c
include/linux/platform_data/cros_ec_proto.h