Re: [PATCH] pinctrl: mediatek: Use of_property_read_bool()

From: AngeloGioacchino Del Regno
Date: Thu Aug 01 2024 - 04:22:31 EST


Il 31/07/24 21:13, Rob Herring (Arm) ha scritto:
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@xxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>