[PATCH v5 0/5] platform/chrome: cros_ec: miscellaneous cleanups

From: Tzung-Bi Shih
Date: Wed Feb 16 2022 - 03:03:22 EST


The 1st patch fixes unhandled undos in error handling path.

The rest of patches cleans drivers/platform/chrome/cros_ec.c.

Changes from v4:
(https://patchwork.kernel.org/project/chrome-platform/cover/20220216043639.3839185-1-tzungbi@xxxxxxxxxx/)
- Rollback the 3rd patch to older version.

Changes from v3:
(https://patchwork.kernel.org/project/chrome-platform/cover/20220209095703.517608-1-tzungbi@xxxxxxxxxx/)
- Drop "platform/chrome: cros_ec: don't initialize `err` in cros_ec_register()".
- Rename the 3rd patch's title.

Changes from v2:
(https://patchwork.kernel.org/project/chrome-platform/cover/20220209045035.380615-1-tzungbi@xxxxxxxxxx/)
- Fix review comments in 1st and 2nd patch.

Changes from v1:
(https://lore.kernel.org/lkml/20220125101527.1812887-1-tzungbi@xxxxxxxxxx/T/#u)
- Use imperative mood in commit messages.
- Use IS_ERR_OR_NULL() in 1st patch.

Tzung-Bi Shih (5):
platform/chrome: cros_ec: fix error handling in cros_ec_register()
platform/chrome: cros_ec: remove unused variable `was_wake_device`
platform/chrome: cros_ec: determine `wake_enabled` in
cros_ec_suspend()
platform/chrome: cros_ec: sort header inclusion alphabetically
platform/chrome: cros_ec: append newline to all logs

drivers/platform/chrome/cros_ec.c | 36 ++++++++++++---------
include/linux/platform_data/cros_ec_proto.h | 3 --
2 files changed, 20 insertions(+), 19 deletions(-)

--
2.35.1.265.g69c8d7142f-goog