]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: renesas: div6: Combine clock-private and parent array allocation
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 12 Jun 2019 15:22:18 +0000 (17:22 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 20 Jun 2019 09:36:29 +0000 (11:36 +0200)
commitba0386111cd86462b994c73084dedf4401c33c44
treecb7159b6d83e943d969f4325d01e6f5b0df3b873
parentd2e4cb45af8facc76e03c9e36675294ed005287c
clk: renesas: div6: Combine clock-private and parent array allocation

Make div6_clock.parents[] a flexible array member, and use the new
struct_size() helper, to combine the allocation of the clock-private
structure and array of parent clocks.

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