diff options
author | Andre Przywara <[email protected]> | 2024-10-07 01:14:05 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2024-10-31 15:51:20 +0000 |
commit | 697a4001d31a607a72c6297e4eb0f7918c6e6929 (patch) | |
tree | 4cb246bcd7cd62a88e390169abd2bb80dec10eef /tools/perf/scripts/python/stackcollapse.py | |
parent | bd91530aee6007a979e52d816779a6e10ed8c00a (diff) |
mfd: axp20x: Ensure relationship between IDs and model names
At the moment there is an implicit relationship between the AXP model
IDs and the order of the strings in the axp20x_model_names[] array.
This is fragile, and makes adding IDs in the middle error prone.
Make this relationship official by changing the ID type to the actual
enum used, and using indexed initialisers for the string list.
Signed-off-by: Andre Przywara <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions