lkml.org 
[lkml]   [2022]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2 03/11] clk: fixed-factor: Introduce *clk_hw_register_fixed_factor_parent_hw()
    From
    Date
    Quoting Marijn Suijten (2022-06-10 00:46:32)
    > On 2022-06-09 15:12:09, Stephen Boyd wrote:
    > > Quoting Dmitry Baryshkov (2022-06-02 03:20:19)
    > > > On Thu, 2 Jun 2022 at 01:07, Marijn Suijten
    > > > <marijn.suijten@somainline.org> wrote:
    > > > > diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
    > > > > index 54942d758ee6..fabb98d0cdb2 100644
    > > > > --- a/drivers/clk/clk-fixed-factor.c
    > > > > +++ b/drivers/clk/clk-fixed-factor.c
    > > > > @@ -148,17 +151,50 @@ struct clk_hw *devm_clk_hw_register_fixed_factor_index(struct device *dev,
    > > > > const char *name, unsigned int index, unsigned long flags,
    > > > > unsigned int mult, unsigned int div)
    > > > > {
    > > > > - return __clk_hw_register_fixed_factor(dev, NULL, name, NULL, index,
    > > > > - flags, mult, div, true);
    > > > > + return __clk_hw_register_fixed_factor(dev, NULL, name, NULL, NULL,
    > > > > + index, flags, mult, div, true);
    > > >
    > > > Here (and several times later) you are inserting an argument and then
    > > > moving arguments to the next line. My slight preference would be to
    > > > just insert the arg (and maybe break the line if it gets too long) w/o
    > > > touching the next lines.
    >
    > That'll definitely look odd, as we'll end up with index floating on a
    > single line, all on its own.

    Pretty sure Dmitry is suggesting to make the line longer, not put the
    index on a line by itself. Ignore the 80-column limit.

    >
    > > I'd just add the argument at the end because when it is added in the
    > > middle it makes the diff more difficult to read.
    >
    > How strong is this feeling, against keeping argument ordering consistent
    > with other implementations of similar __clk_hw_register_* functions?
    >

    Not super strong. Just try to minimize the diff to make the reviewer's
    job easier. In this case it would be inserting NULL before 'index' and
    not modifying the next line so the diff is one line instead of two.

    \
     
     \ /
      Last update: 2022-06-10 21:01    [W:5.262 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site