Re: [PATCHv2] clk: hisilicon: clkdivider-hi6220: use kzalloc_flex
From: Brian Masney
Date: Tue Mar 31 2026 - 10:15:22 EST
On Mon, Mar 30, 2026 at 02:02:17PM -0700, Rosen Penev wrote:
> Combine allocations using kzalloc_flex and a flexible array member.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v2: add missing transformation.
> drivers/clk/hisilicon/clkdivider-hi6220.c | 26 ++++++++---------------
> 1 file changed, 9 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/clk/hisilicon/clkdivider-hi6220.c b/drivers/clk/hisilicon/clkdivider-hi6220.c
> index 1787ecefe601..b35c02d3bc05 100644
> --- a/drivers/clk/hisilicon/clkdivider-hi6220.c
> +++ b/drivers/clk/hisilicon/clkdivider-hi6220.c
> @@ -26,8 +26,8 @@
> * @shift: shift to the divider bit field
> * @width: width of the divider bit field
> * @mask: mask for setting divider rate
> - * @table: the div table that the divider supports
> * @lock: register lock
> + * @->table: the div table that the divider supports
Why this change?
Brian