pinctrl: mediatek: Use of_property_read_bool()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 19:13:01 +0000 (13:13 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2024 15:38:00 +0000 (17:38 +0200)
commitb106492686efcff523425eaf956cb4cb31555a61
tree439e59c3b351c4d6ca2dde50397b09036c3cc768
parentcd7d3f4f9756df0b14e5c91d6ba072372033ba18
pinctrl: mediatek: Use of_property_read_bool()

Use of_property_read_bool() to read boolean properties rather than
of_find_property(). This is part of a larger effort to remove callers
of of_find_property() and similar functions. of_find_property() leaks
the DT struct property and data pointers which is a problem for
dynamically allocated nodes which may be freed.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/20240731191312.1710417-23-robh@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-paris.c