of: Change of_machine_is_compatible() to return bool
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Dec 2023 10:31:49 +0000 (21:31 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Mar 2024 11:20:29 +0000 (22:20 +1100)
commitcefdb366dcbe97908b6055595a15bf7689556bf8
tree87a5e2ef90adc154372ca5a59bd87491a817a96b
parentc029b22f8a98e14988f800d5c0176a9eaec3c8db
of: Change of_machine_is_compatible() to return bool

of_machine_is_compatible() currently returns a positive integer if it
finds a match. However none of the callers ever check the value, they
all treat it as a true/false.

So change of_machine_is_compatible() to return bool, which will allow
the implementation to be changed in a subsequent patch.

Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231214103152.12269-2-mpe@ellerman.id.au
drivers/of/base.c
include/linux/of.h