Re: [PATCH 33/37] clk: bcm: rpi: Create helper to retrieve private data
From: Stephen Boyd
Date: Thu Nov 21 2024 - 17:48:21 EST
Quoting Dave Stevenson (2024-10-23 09:50:30)
> 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.
>
> Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
> Signed-off-by: Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>
> ---
Acked-by: Stephen Boyd <sboyd@xxxxxxxxxx>