[PATCH RFC RFT v2 3/3] clk: meson: pll: Remove the dedicated n parameter
Jian Hu
jian.hu at amlogic.com
Thu Nov 26 22:43:30 PST 2026
On 11/25/2026 9:06 PM, Jian Hu wrote:
>
> On 11/6/2026 1:50 AM, Jerome Brunet wrote:
>
[ ... ]
>>>
>>> -struct pll_params_table {
>>> - unsigned int m;
>>> - unsigned int n;
>>> +struct pll_mult_table {
>> nit: a struct with a single member. A plain 0-terminated
>> `const unsigned int *` list of multipliers would do
>>
>> Also, there are spaces instead of a tab before `m`.
>
>
> Ok, I'll remove the single-member struct and switch to a 0-terminated
> unsigned int array.
>
> The helper's table pointer will be updated to 'const unsigned int *'.
>
> The spacing issue is resolved as a result.
>
>
> To avoid ending this series with a mechanical patch touching every SoC.
>
> I will submit a separate patch before the per-SoC changes to add a
> 'mult_table' member
>
> to the 'struct meson_meson_clk_pll_data' structure.
>
A short follow-up on the table conversion I described earlier.
I said I would add a separate "const unsigned int *" member and convert the
SoC tables one by one. I would rather keep the existing member name 'table',
instead of adding a second table name.
The G12A/Meson8/AXG table converts will be submitted together with the final
removing 'n' patch.
>>> + unsigned int m;
>>> };
>>>
[ ... ]
--
Jian
More information about the linux-arm-kernel
mailing list