]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: bcm: rpi: Create helper to retrieve private data
authorMaxime Ripard <mripard@kernel.org>
Thu, 16 Jan 2025 16:24:11 +0000 (16:24 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 16 Jan 2025 21:27:12 +0000 (13:27 -0800)
commit4af2cfc2ccdc57330cbd5da8c8dc8878f863763a
tree941b2b0931802774ba057a3a9b7ee6bbe306f394
parent4d85abb0fb8eac79375b88d4442cdfc624389bcc
clk: bcm: rpi: Create helper to retrieve private data

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@kernel.org>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20250116-bcm2712-clk-updates-v1-4-10bc92ffbf41@raspberrypi.com
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-raspberrypi.c