[PATCH 33/37] clk: bcm: rpi: Create helper to retrieve private data

Stephen Boyd sboyd at kernel.org
Thu Nov 21 22:47:53 UTC 2024


Quoting Dave Stevenson (2024-10-23 09:50:30)
> From: Maxime Ripard <mripard at kernel.org>
> 
> 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 at kernel.org>
> Signed-off-by: Dave Stevenson <dave.stevenson at raspberrypi.com>
> ---

Acked-by: Stephen Boyd <sboyd at kernel.org>


More information about the dri-devel mailing list