clk: bcm: rpi: Create helper to retrieve private data
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 13:58:36 +0000 (15:58 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:29 +0000 (11:33 +0000)
commit7db33dd00df942844924fb0b0650a76c0e4c0ff3
tree424dae58a0ef5efac502d914d8bf81d86c30a65b
parent36cf1e5f2a5154a5e91391f1372cc6aa08c79d93
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.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/clk/bcm/clk-raspberrypi.c