Adding this field makes it a lot easier to loop through and register predefined tables containing struct clk_mux elements. Also reorder members to prevent unnecessary padding in struct. Signed-off-by: Joachim Eastwood <manabian@xxxxxxxxx> --- include/linux/clk-provider.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 5591ea71a8d1..d5ee7ec7443c 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -411,9 +411,10 @@ struct clk_mux { void __iomem *reg; u32 *table; u32 mask; + spinlock_t *lock; u8 shift; u8 flags; - spinlock_t *lock; + u8 table_size; }; #define CLK_MUX_INDEX_ONE BIT(0) -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html