of: Add __of_device_is_status() and makes more generic status check
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 10 Jan 2024 01:14:34 +0000 (01:14 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 23 Jan 2024 08:38:16 +0000 (09:38 +0100)
commitb5056ecf7cf92b7b38a54f0dbf705c31ca346e23
treefd5459a3d437da87fdbe0bd6861f36e4778ffaaf
parent6613476e225e090cc9aad49be7fa504e290dd33d
of: Add __of_device_is_status() and makes more generic status check

Linux Kernel has __of_device_is_available() / __of_device_is_fail(),
these are checking if the status was "okay" / "ok" / "fail" / "fail-".

Add more generic __of_device_is_status() function for these.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/87cyuagfba.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/of/base.c