Re: [PATCH v4 1/7] firmware: raspberrypi: Introduce rpi_firmware_find_node()

From: Florian Fainelli
Date: Mon Oct 24 2022 - 17:15:20 EST


On 10/20/22 02:12, maxime@xxxxxxxxxx wrote:
A significant number of RaspberryPi drivers using the firmware don't
have a phandle to it, so end up scanning the device tree to find a node
with the firmware compatible.

That code is duplicated everywhere, so let's introduce a helper instead.

Signed-off-by: Maxime Ripard <maxime@xxxxxxxxxx>

Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

Thanks for re-ordering the rpi_firmware_of_match array and avoiding a forward declaration that I was initially confused about in v3.
--
Florian