On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia <ezequiel.garcia@xxxxxxxxxx> wrote: > As preparation work to support MIPS PLL rate change propagation, this > commit adds a MUX_F macro to pass clk_flags. > > Signed-off-by: Govindraj Raja <Govindraj.Raja@xxxxxxxxxx> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@xxxxxxxxxx> > --- a/drivers/clk/pistachio/clk.h > +++ b/drivers/clk/pistachio/clk.h > @@ -44,11 +45,22 @@ struct pistachio_mux { > .id = _id, \ > .reg = _reg, \ > .shift = _shift, \ > + .clk_flags = CLK_SET_RATE_NO_REPARENT, \ > .name = _name, \ > .parents = _pnames, \ > .num_parents = ARRAY_SIZE(_pnames) \ > } > > +#define MUX_F(_id, _name, _pnames, _reg, _shift, _clkf) \ > +{ \ > + .id = _id, \ > + .reg = _reg, \ > + .shift = _shift, \ > + .name = _name, \ > + .parents = _pnames, \ > + .num_parents = ARRAY_SIZE(_pnames), \ > + .clk_flags = _clkf, \ > +} nit: the indentation here is inconsistent with the other macros in this file.