usb: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:28 +0000 (08:47 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2023 11:14:56 +0000 (12:14 +0100)
commitf977caea50381e9ca38319037a2b23fe3209d647
treedfb9ad4e6e2d64b6cb352360dd2797e3033178e0
parenta3927e1a9f1c3b7d71d9c8215905397e55da4da3
usb: Use of_property_read_bool() for boolean properties

It is preferred to use typed property access functions (i.e.
of_property_read_<type> functions) rather than low-level
of_get_property/of_find_property functions for reading properties.
Convert reading boolean properties to to of_property_read_bool().

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Richard Leitner <richard.leitner@skidata.com>
Link: https://lore.kernel.org/r/20230310144729.1545857-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c
drivers/usb/chipidea/core.c
drivers/usb/dwc2/params.c
drivers/usb/host/ehci-ppc-of.c
drivers/usb/host/fsl-mph-dr-of.c
drivers/usb/misc/usb251xb.c