]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_proto: separate cros_ec_xfer_command()
authorTzung-Bi Shih <tzungbi@kernel.org>
Mon, 18 Jul 2022 05:09:09 +0000 (05:09 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 20 Jul 2022 01:22:58 +0000 (01:22 +0000)
commit4461c5a3ecaeba97c2198d9d273b5045e5fea992
tree7c2dfefe7ad5cd0d10f38232f84124c01fcd5cfd
parent95af3319be83ae68732b3ea510e754726fc76ead
platform/chrome: cros_ec_proto: separate cros_ec_xfer_command()

cros_ec_send_command() has extra logic to handle EC_RES_IN_PROGRESS.
Separate the command transfer part into cros_ec_xfer_command() so
that other functions can re-use it.

Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220718050914.2267370-6-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_proto.c