On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia <ezequiel.gar...@imgtec.com> 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.r...@imgtec.com> > Signed-off-by: Ezequiel Garcia <ezequiel.gar...@imgtec.com>
> --- 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/