Re: [PATCH v2 1/4] pwm: meson: switch to using struct clk_parent_data for mux parents

Martin Blumenstingl
2023-04-11T19:46:09Z

Hello Heiner,

On Tue, Apr 11, 2023 at 9:26 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> We'll use struct clk_parent_data for mux/div/gate initialization in the
> follow-up patches. As a first step switch the mux from using
> parent_names to clk_parent_data.
great, thanks!

[...]
> + for (j = 0; j < meson->data->num_parents; j++) {
> + mux_parent_data[j].index = -1;
> + mux_parent_data[j].name = meson->data->parent_names[j];
> + }
I think this can be moved outside the npwm loop because the clock
inputs are for the whole IP block, not per PWM channel