diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2025-08-28 08:35:57 +0000 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2025-09-14 11:34:41 +0800 |
commit | 918856986014142271a70a334d300994b9c41720 (patch) | |
tree | 9bd31c49c6fd2be28ed450b75ca7cbb45fb3b2f6 /rust/helpers/blk.c | |
parent | f7439a723e5aa5b35c76355e1b9b2cd1108f656e (diff) |
platform/chrome: Centralize cros_ec_device allocation
Introduce a helper function, cros_ec_device_alloc(), to centralize the
allocation of the struct cros_ec_device. Convert all protocol device
drivers to use this new function.
This is a preparatory step for separating common initialization logic
out of device drivers' probe() and cros_ec_register().
Link: https://lore.kernel.org/r/20250828083601.856083-2-tzungbi@kernel.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'rust/helpers/blk.c')
0 files changed, 0 insertions, 0 deletions