Re: [PATCH 4/5] clk: bcm: rpi: Create helper to retrieve private data

From: Florian Fainelli
Date: Thu Jan 16 2025 - 12:46:24 EST


On 1/16/25 08:24, Dave Stevenson wrote:
From: Maxime Ripard <mripard@xxxxxxxxxx>

The RaspberryPi firmware clocks driver uses in several instances a
container_of to retrieve the struct raspberrypi_clk_data from a pointer
to struct clk_hw. Let's create a small function to avoid duplicating it
all over the place.

Acked-by: Stephen Boyd <sboyd@xxxxxxxxxx>
Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
Signed-off-by: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian