clk: sunxi: Store the array sizes in the CCU descriptor
The reset array size is currently used for bounds checking in the reset driver. The same bounds check should really be done in the clock driver. Currently, the array size is provided to the reset driver separately from the CCU descriptor, which is a bit strange. Let's do this the usual way, with the array sizes next to the arrays themselves. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> [Andre: add F1C100s support] Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
committed by
Andre Przywara
parent
26f6f7fb5c
commit
49b2b0a2b6
@@ -70,6 +70,8 @@ struct ccu_reset {
|
||||
struct ccu_desc {
|
||||
const struct ccu_clk_gate *gates;
|
||||
const struct ccu_reset *resets;
|
||||
u8 num_gates;
|
||||
u8 num_resets;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user