Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758061AbbEVRHv (ORCPT ); Fri, 22 May 2015 13:07:51 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:34620 "EHLO mail-qk0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757568AbbEVRHo (ORCPT ); Fri, 22 May 2015 13:07:44 -0400 MIME-Version: 1.0 In-Reply-To: <1432252663-31318-6-git-send-email-ezequiel.garcia@imgtec.com> References: <1432252663-31318-1-git-send-email-ezequiel.garcia@imgtec.com> <1432252663-31318-6-git-send-email-ezequiel.garcia@imgtec.com> Date: Fri, 22 May 2015 10:07:43 -0700 X-Google-Sender-Auth: c-XWBHL3qKAoGT3dqIoougHv1-o Message-ID: Subject: Re: [PATCH 5/9] clk: pistachio: Add a MUX_F macro to pass clk_flags From: Andrew Bresticker To: Ezequiel Garcia Cc: Linux-MIPS , "linux-kernel@vger.kernel.org" , Mike Turquette , Stephen Boyd , James Hartley , Govindraj Raja , Damien Horsley , Kevin Cernekee , James Hogan Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1887 Lines: 38 On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia 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 > Signed-off-by: Ezequiel Garcia > --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/