[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a6b96055a16da89a3cc20c145b65beb61c55f0a1.camel@perches.com>
Date: Mon, 21 Jan 2019 08:39:20 -0800
From: Joe Perches <joe@...ches.com>
To: Chanwoo Choi <cw00.choi@...sung.com>,
Yangtao Li <tiny.windzz@...il.com>, myungjoo.ham@...sung.com,
kyungmin.park@...sung.com, linux-pm@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] PM / devfreq: fix indentation in
devfreq_add_device()
On Mon, 2019-01-21 at 10:58 +0900, Chanwoo Choi wrote:
> On 19. 1. 20. 오전 1:04, Yangtao Li wrote:
> > To beautify the code format.
I believe half of the changes are actually _less_ beautiful.
> > diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
[]
> > @@ -683,16 +683,15 @@ struct devfreq *devfreq_add_device(struct device *dev,
> > goto err_out;
> > }
> >
> > - devfreq->trans_table =
> > - devm_kzalloc(&devfreq->dev,
> > - array3_size(sizeof(unsigned int),
> > - devfreq->profile->max_state,
> > - devfreq->profile->max_state),
> > - GFP_KERNEL);
> > + devfreq->trans_table = devm_kzalloc(&devfreq->dev,
> > + array3_size(sizeof(unsigned int),
> > + devfreq->profile->max_state,
> > + devfreq->profile->max_state),
> > + GFP_KERNEL);
I think this bit is worse because the array3_size arguments
are no longer aligned.
> > devfreq->time_in_state = devm_kcalloc(&devfreq->dev,
> > - devfreq->profile->max_state,
> > - sizeof(unsigned long),
> > - GFP_KERNEL);
> > + devfreq->profile->max_state,
> > + sizeof(unsigned long),
> > + GFP_KERNEL);
and this bit is better.
Powered by blists - more mailing lists