[U-Boot] [RESEND PATCH v2 2/4] clk: clk_fixed_rate: Fix style violation
Dr. Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Mon Jan 15 10:19:38 UTC 2018
Tom,
> On 15 Jan 2018, at 11:06, Mario Six <mario.six at gdsys.cc> wrote:
>
> Fix a mis-indented function call in clk_fixed_rate.c
A general question: do we want to have such gardening commits
create an additional indirection in our history for people using
git-blame frequently (e.g. I usually use git-blame to find the last
commit that touched a line and then read the log message to find
out why something was changed… now I’d have to restart this
search whenever I hit a pure formatting change)?
My gut feeling would be that we should try to change lines only
when there is an actual change to the code happening.
Regards,
Philipp.
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Mario Six <mario.six at gdsys.cc>
> ---
>
> v1 -> v2:
> None
>
> ---
> drivers/clk/clk_fixed_rate.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
> index 63565b6ed8..9dd6bc5726 100644
> --- a/drivers/clk/clk_fixed_rate.c
> +++ b/drivers/clk/clk_fixed_rate.c
> @@ -31,8 +31,8 @@ const struct clk_ops clk_fixed_rate_ops = {
> static int clk_fixed_rate_ofdata_to_platdata(struct udevice *dev)
> {
> #if !CONFIG_IS_ENABLED(OF_PLATDATA)
> - to_clk_fixed_rate(dev)->fixed_rate = dev_read_u32_default(dev,
> - "clock-frequency", 0);
> + to_clk_fixed_rate(dev)->fixed_rate =
> + dev_read_u32_default(dev, "clock-frequency", 0);
> #endif
>
> return 0;
> --
> 2.11.0
>
More information about the U-Boot
mailing list