diff options
| author | Andrew Jeffery <[email protected]> | 2025-06-16 13:13:47 +0000 |
|---|---|---|
| committer | Andrew Jeffery <[email protected]> | 2025-07-08 02:05:07 +0000 |
| commit | fdf003f30b99e232cd3e61cc42d836ed14d08ccb (patch) | |
| tree | 45919eb0c55c3cb25f0286794bd6faa89ee7d211 /rust/helpers/helpers.c | |
| parent | soc: aspeed: lpc-snoop: Consolidate channel initialisation (diff) | |
| download | kernel-fdf003f30b99e232cd3e61cc42d836ed14d08ccb.tar.gz kernel-fdf003f30b99e232cd3e61cc42d836ed14d08ccb.zip | |
soc: aspeed: lpc-snoop: Lift channel config to const structs
The shifts and masks for each channel are defined by hardware and
are not something that changes at runtime. Accordingly, describe the
information in an array of const structs and associate elements with
each channel instance, removing the need for the switch and handling of
its default case.
Link: https://patch.msgid.link/20250616-aspeed-lpc-snoop-fixes-v2-10-3cdd59c934d3@codeconstruct.com.au
Signed-off-by: Andrew Jeffery <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
