clk: zynqmp: use structs for clk query responses
authorMichael Tretter <m.tretter@pengutronix.de>
Fri, 12 Apr 2019 09:52:20 +0000 (11:52 +0200)
committerStephen Boyd <sboyd@kernel.org>
Fri, 19 Apr 2019 20:59:55 +0000 (13:59 -0700)
commit5852b1365df4414523210e444ac7df1dec09acb4
treee23c7301e84f915ecfddd7abc762adfafef3d19e
parentc06e64407e031e71c67f45f07981510ca4c880a1
clk: zynqmp: use structs for clk query responses

The driver retrieves the clock tree by querying the ATF for the clock
names, the clock topology, the parents and other attributes. The driver
needs to unmarshal the responses.

The definition of the fields in the firmware responses to the queries is
inconsistent. Some are specified as a mask, some as a shift, and by the
length of the previous field.

Define C structs for the entire firmware responses to avoid passing
pointers to arrays of an implicit size and make the format of the
responses to the queries obvious.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Jolly Shah <jolly.shah@xilinx.com>
[sboyd@kernel.org: Drop 0 initializers because sparse complains]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/zynqmp/clk-zynqmp.h
drivers/clk/zynqmp/clkc.c