diff options
author | Aidan MacDonald <[email protected]> | 2023-05-10 12:50:40 +0100 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2023-05-15 23:19:52 +0200 |
commit | 28ca77c9bb8c895ed13163d8b74dafdc90cf44e1 (patch) | |
tree | fb792cb4d4342bcee49ed44d02dd7e0e5009bafa /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 67fce5963b202acc410776cc180c307192dca9d2 (diff) |
power: supply: axp20x_usb_power: Simplify USB current limit handling
Handle the USB current limit with a lookup table and regmap field,
which minimizes code duplication. Invalid or unlimited values are
denoted by -1 entries, and can't be selected from userspace.
Signed-off-by: Aidan MacDonald <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions