Re: [PATCH 5/9] clk: pistachio: Add a MUX_F macro to pass clk_flags

From: Andrew Bresticker
Date: Fri May 22 2015 - 13:07:53 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/