OSDN Git Service

clk: renesas: mstp: Combine group-private and clock array allocation
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 12 Jun 2019 15:25:39 +0000 (17:25 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 20 Jun 2019 09:36:44 +0000 (11:36 +0200)
commita79f5836bd5f38673e130e78e8b8a03438e6a030
tree2b1431613c175fe5904cf30b17d892a90254b04c
parentba0386111cd86462b994c73084dedf4401c33c44
clk: renesas: mstp: Combine group-private and clock array allocation

Make mstp_clock_group.clks[] a flexible array member, and use the new
struct_size() helper, to combine the allocation of the group-private
structure and array of module clocks.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clk/renesas/clk-mstp.c