diff options
| author | Caleb Connolly <[email protected]> | 2025-03-31 12:43:18 +0200 |
|---|---|---|
| committer | Caleb Connolly <[email protected]> | 2025-04-10 15:43:10 +0200 |
| commit | 602ceb0c9279e15f94e160c70d471da6c4300841 (patch) | |
| tree | ca376369a48ff6487981c19c1a5f4a00b8632770 /include/linux/string.h | |
| parent | 5b233442afacde1aca2556c543b1cd8e22946690 (diff) | |
mach-snapdragon: of_fixup: fix condition check in ft_board_setup()
The fdt_node_check_compatible() function returns 0 on success which is
pretty confusing, and we were using it wrong!
Invert the condition check and refactor things to be more readable.
Additionally, add the check for the RB1 which needs the same fixup as
the RB2.
Reported-by: Sam Day <[email protected]>
Fixes: e64503f1fcdf ("mach-snapdragon: implement ft_board_setup() for USB role selection")
Tested-by: Alexey Minnekhanov <[email protected]>
Tested-by: Sam Day <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Caleb Connolly <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
