[PATCH v4 01/31] clk: at91: pmc: add macros for clk_parent_data
Claudiu Beznea
claudiu.beznea at tuxon.dev
Mon Oct 20 12:40:02 PDT 2025
Hi, Ryan,
On 9/19/25 00:15, Ryan.Wanner at microchip.com wrote:
> From: Claudiu Beznea <claudiu.beznea at tuxon.dev>
>
> Add helpers to set parent_data objects in platform specific drivers.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea at tuxon.dev>
> [ryan.wanner at microchip.com: enclose complex macro with parentheses.]
> Signed-off-by: Ryan Wanner <Ryan.Wanner at microchip.com>
> ---
> drivers/clk/at91/pmc.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h
> index 5daa32c4cf25..4a416d227c50 100644
> --- a/drivers/clk/at91/pmc.h
> +++ b/drivers/clk/at91/pmc.h
> @@ -15,6 +15,14 @@
>
> #include <dt-bindings/clock/at91.h>
>
> +#define AT91_CLK_PD_NAME(n) ((struct clk_parent_data){ \
> + .hw = NULL, .name = (n), .fw_name = NULL, .index = -1, \
> +})
> +
> +#define AT91_CLK_PD_HW(h) ((struct clk_parent_data){\
Missing one space here -------------------------------^
> + .hw = (h), .name = NULL, .fw_name = NULL, .index = -1, \
> +})
> +
> extern spinlock_t pmc_pcr_lock;
>
> struct pmc_data {
More information about the linux-arm-kernel
mailing list