platform/chrome: cros_ec: Separate logic for getting panic info
authorRob Barnes <robbarnes@google.com>
Mon, 10 Apr 2023 16:58:17 +0000 (16:58 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 24 Apr 2023 05:35:12 +0000 (13:35 +0800)
commit26e1dc1bef42a699734056271e790982e2ba8092
treed866a8be6cfd601c46a83a0ba817ff710ba088d5
parentdc70234c408c644505a24362b0f095f713e4697e
platform/chrome: cros_ec: Separate logic for getting panic info

Create a separate function called cros_ec_get_panicinfo for getting
panic info from EC.

Currently cros_ec_create_panicinfo is the only caller.

Signed-off-by: Rob Barnes <robbarnes@google.com>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20230410165817.932449-1-robbarnes@google.com
drivers/platform/chrome/cros_ec_debugfs.c