diff options
author | Benno Lossin <[email protected]> | 2023-08-14 08:46:26 +0000 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-08-21 14:31:33 +0200 |
commit | b3068ac37b1c10ee4b9fb6c07a2e46021376c374 (patch) | |
tree | 12f66fe7d055c7515e8195eedd1f739dfac1df66 /drivers/platform/surface/aggregator/ssh_parser.c | |
parent | 2285eb2f2429daadf9d57f08137b472139470aa9 (diff) |
rust: init: consolidate init macros
Merges the implementations of `try_init!` and `try_pin_init!`. These two
macros are very similar, but use different traits. The new macro
`__init_internal!` that is now the implementation for both takes these
traits as parameters.
This change does not affect any users, as no public API has been
changed, but it should simplify maintaining the init macros.
Reviewed-by: Björn Roy Baron <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Signed-off-by: Benno Lossin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Cleaned a couple trivial nits. ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions