On Tue, 21 Nov 2023 02:05:25 +0000, Kuninori Morimoto wrote: > 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@xxxxxxxxxxx> > Tested-by: Yusuke Goda <yusuke.goda.sx@xxxxxxxxxxx> > --- > drivers/of/base.c | 57 ++++++++++++++++++++++++++++++----------------- > 1 file changed, 36 insertions(+), 21 deletions(-) > Reviewed-by: Rob Herring <robh@xxxxxxxxxx>