commit | 634b5bd7318725202ffad6cbf034b006970b1112 | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Tue Jan 19 16:08:00 2021 +0100 |
committer | Jakub Kicinski <kuba@kernel.org> | Thu Jan 21 12:19:56 2021 -0800 |
tree | 9ac568c38c8fa70acf9704f82260ca22fc65ae58 | |
parent | 33deb13c87e561c3b566c60aede124a5e23981c1 [diff] |
ethernet: ucc_geth: add helper to replace repeated switch statements The translation from the ucc_geth_num_of_threads enum value to the actual count can be written somewhat more compactly with a small lookup table, allowing us to replace the four switch statements. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Jakub Kicinski <kuba@kernel.org>