Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5920742imu; Sun, 20 Jan 2019 23:27:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN6xzS80s6dfu2rY22lEnTOl0mwA70KjnezsFzad8G5809HHshg4+npki9gaqSiW4FfGEfui X-Received: by 2002:a17:902:d70b:: with SMTP id w11mr29414636ply.294.1548055678673; Sun, 20 Jan 2019 23:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548055678; cv=none; d=google.com; s=arc-20160816; b=sR/rAbiGN+j088Ri2gGA2EGBAKDlWXGGJMpMSEMkAnFQlEEcPd0JwCXIXfHr/xFLF+ qM9EhUvFdvZ+jxS9KajZjPpncurypQpvyimY5svweakvYVyAfZq1ZLilzNiPAzMUi0hb vX60YJ77f2G7Ix27EDDZaA13Sg0UPJyRrCwrzhxyJC82zZnjQQoy3dkAhVTXiAuUZIyX fZpvfqAy1zFZzDm2h1GQHiLDHE2UFcmilp3925xw443g1EWItnDxPEbH/9ykNrxzh5fZ mihGFH4MGEUk1uNAmdZjri5hge7uHRUATv082vjLTlOXqDZBReMiRqqJsBgcU4FBv6/R nPoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=P7L47SeNL8gKRFMa6DNEXYkSDaR1nIU0kO1QecejcVQ=; b=Q6uGZqhifGX+kp3nlWedcYkPQvh3cyfvkBXY7e6x+pY5sWQyfvB/ZCvbb6dOv5Z0sP B4cpWqXDJmosS6Db0XExOJgllovnnTCF4Dwd/bChkJzlkNVXU5szyWtY28snqvKzYUU4 IleLdIQKA0SN99BuO+n070UWRaX9xfsoaqPWK6DEi+L7wRstS3kT5DTw8XMuA1EdE6xE s01peatYkVYNeMoqIvOUdWCxN7q4HDwdztzDtvqtX9a41PalSYq1IF7RFlFvAG+WYXSA WDcy6LF/BmoB02XkUU9PRo3BKUSLzWnkgnatMgNnXoqPx4Y+8WuM1gyuolAA7o34Gzbv jWwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eP4p4gHU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si12317551plj.334.2019.01.20.23.27.42; Sun, 20 Jan 2019 23:27:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eP4p4gHU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbfAUH0U (ORCPT + 99 others); Mon, 21 Jan 2019 02:26:20 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:37078 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728222AbfAUH0R (ORCPT ); Mon, 21 Jan 2019 02:26:17 -0500 Received: by mail-it1-f194.google.com with SMTP id b5so13890141iti.2; Sun, 20 Jan 2019 23:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=P7L47SeNL8gKRFMa6DNEXYkSDaR1nIU0kO1QecejcVQ=; b=eP4p4gHUK/ChLsEzsmw89/vLBbCLszwDfLWEaKGlAYXO9sqcX1d9w1PsORamRofcTW GJMb3w+Vp4GueaUeoEAkfzRmff6VUpad3XFXNoGMNKaB0gAdfrtehNDxNnrRwx4AqA4v tWu4QeK9sfdTuBRkQHqVdSzHFFvfwAj+AlI0H3vDvbZdKdKZIE14xHcA7PpWZCvYuBQv 3wmYU97P1JyVVP3CNmshYn22AIS48cowvRiYAAZ5MCK8KwU4uEgjB46apnfcrs/0UWMF LlJLbeEg84//PwgsBekF5ZvmHOifKehPPOcnjVt428ezAQ286GUTSb+WLsVi29z3V03S 45Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=P7L47SeNL8gKRFMa6DNEXYkSDaR1nIU0kO1QecejcVQ=; b=eK0NtCOsUXaM+Llbk2Ydz0C5HuTItMdVWv+MY8yzsb4UuusNLbqY91VK+6Q19p2xxZ 2boaog2XKboMOv6DbDsVY+n9tDlaveMjBvN5D0rPPHPdRNGOyafCjoviAe/m5A1mFdez hBIInAfaO9ykYcnh8ZG99k1EHlbjR/WMz/09Qg2Y39wTPdL3LKG7bOus9gDWt1iI8RmF M6AJJHFlCr5/SIkswG/tIC/589gU8J0sNJXcDBsw3XHJKSLiUZY80vbLuUbioSuUbZiW Eooh3lq49pJizhJdwMj3X7dOhospiDoEVNQQyoFz5A1LOL1JwmdaY1mJ9lxjUbJ2l9Gr wsyQ== X-Gm-Message-State: AJcUukcnoxKQj5RJ264hAT6cGw/dGFNHBLrkL+4a3BfVlJThqRGub5IA K6eOkd4bXajuuChGBcPa9p3U3h115XymWgKPwbIkItZEoKE= X-Received: by 2002:a24:7b90:: with SMTP id q138mr15285205itc.37.1548039635298; Sun, 20 Jan 2019 19:00:35 -0800 (PST) MIME-Version: 1.0 References: <20190121021940epcms1p57620581b960dba9805dfddee903ccd6c@epcms1p5> In-Reply-To: From: Frank Lee Date: Mon, 21 Jan 2019 10:59:31 +0800 Message-ID: Subject: Re: [PATCH] PM / devfreq: consistent indentation To: Chanwoo Choi Cc: MyungJoo Ham , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 10:28 AM Chanwoo Choi wrote= : > > On 19. 1. 21. =EC=98=A4=EC=A0=84 11:19, MyungJoo Ham wrote: > > Following up with complaints on inconsistent indentation from > > Yangtao Li, this fixes indentation inconsistency. > > > > In principle, this tries to put arguments aligned to the left > > including the first argument except for in the case where > > the first argument is on the far-right side. Acked-by: Yangtao Li > > > > Signed-off-by: MyungJoo Ham > > --- > > drivers/devfreq/devfreq.c | 49 +++++++++++++++++++++++----------------= -------- > > 1 file changed, 24 insertions(+), 25 deletions(-) > > Looks better before. > Reviewed-by: Chanwoo Choi > > > > > diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c > > index 4af608a..428a1de 100644 > > --- a/drivers/devfreq/devfreq.c > > +++ b/drivers/devfreq/devfreq.c > > @@ -528,7 +528,7 @@ void devfreq_interval_update(struct devfreq *devfre= q, unsigned int *delay) > > mutex_lock(&devfreq->lock); > > if (!devfreq->stop_polling) > > queue_delayed_work(devfreq_wq, &devfreq->work, > > - msecs_to_jiffies(devfreq->profile->polling_= ms)); > > + msecs_to_jiffies(devfreq->profile->pollin= g_ms)); > > } > > out: > > mutex_unlock(&devfreq->lock); > > @@ -537,7 +537,7 @@ EXPORT_SYMBOL(devfreq_interval_update); > > > > /** > > * devfreq_notifier_call() - Notify that the device frequency requirem= ents > > - * has been changed out of devfreq framework. > > + * has been changed out of devfreq framework. > > * @nb: the notifier_block (supposed to be devfreq->nb) > > * @type: not used > > * @devp: not used > > @@ -683,12 +683,11 @@ struct devfreq *devfreq_add_device(struct device = *dev, > > goto err_out; > > } > > > > - devfreq->trans_table =3D > > - devm_kzalloc(&devfreq->dev, > > - array3_size(sizeof(unsigned int), > > - devfreq->profile->max_state, > > - devfreq->profile->max_state), > > - GFP_KERNEL); > > + devfreq->trans_table =3D devm_kzalloc(&devfreq->dev, > > + array3_size(sizeof(unsigned int), > > + devfreq->profile->max_state, > > + devfreq->profile->max_state), > > + GFP_KERNEL); > > if (!devfreq->trans_table) { > > mutex_unlock(&devfreq->lock); > > err =3D -ENOMEM; > > @@ -696,9 +695,9 @@ struct devfreq *devfreq_add_device(struct device *d= ev, > > } > > > > devfreq->time_in_state =3D devm_kcalloc(&devfreq->dev, > > - devfreq->profile->max_sta= te, > > - sizeof(unsigned long), > > - GFP_KERNEL); > > + devfreq->profile->max_state, > > + sizeof(unsigned long), > > + GFP_KERNEL); > > if (!devfreq->time_in_state) { > > mutex_unlock(&devfreq->lock); > > err =3D -ENOMEM; > > @@ -1184,7 +1183,7 @@ static ssize_t available_governors_show(struct de= vice *d, > > */ > > if (df->governor->immutable) { > > count =3D scnprintf(&buf[count], DEVFREQ_NAME_LEN, > > - "%s ", df->governor_name); > > + "%s ", df->governor_name); > > /* > > * The devfreq device shows the registered governor except for > > * immutable governors such as passive governor . > > @@ -1497,8 +1496,8 @@ EXPORT_SYMBOL(devfreq_recommended_opp); > > > > /** > > * devfreq_register_opp_notifier() - Helper function to get devfreq no= tified > > - * for any changes in the OPP availabilit= y > > - * changes > > + * for any changes in the OPP availabil= ity > > + * changes > > * @dev: The devfreq user device. (parent of devfreq) > > * @devfreq: The devfreq object. > > */ > > @@ -1510,8 +1509,8 @@ EXPORT_SYMBOL(devfreq_register_opp_notifier); > > > > /** > > * devfreq_unregister_opp_notifier() - Helper function to stop getting= devfreq > > - * notified for any changes in the OPP > > - * availability changes anymore. > > + * notified for any changes in the OP= P > > + * availability changes anymore. > > * @dev: The devfreq user device. (parent of devfreq) > > * @devfreq: The devfreq object. > > * > > @@ -1530,8 +1529,8 @@ static void devm_devfreq_opp_release(struct devic= e *dev, void *res) > > } > > > > /** > > - * devm_ devfreq_register_opp_notifier() > > - * - Resource-managed devfreq_register_opp_notifier() > > + * devm_devfreq_register_opp_notifier() - Resource-managed > > + * devfreq_register_opp_notifier() > > * @dev: The devfreq user device. (parent of devfreq) > > * @devfreq: The devfreq object. > > */ > > @@ -1559,8 +1558,8 @@ int devm_devfreq_register_opp_notifier(struct dev= ice *dev, > > EXPORT_SYMBOL(devm_devfreq_register_opp_notifier); > > > > /** > > - * devm_devfreq_unregister_opp_notifier() > > - * - Resource-managed devfreq_unregister_opp_notifier() > > + * devm_devfreq_unregister_opp_notifier() - Resource-managed > > + * devfreq_unregister_opp_notifi= er() > > * @dev: The devfreq user device. (parent of devfreq) > > * @devfreq: The devfreq object. > > */ > > @@ -1579,8 +1578,8 @@ EXPORT_SYMBOL(devm_devfreq_unregister_opp_notifie= r); > > * @list: DEVFREQ_TRANSITION_NOTIFIER. > > */ > > int devfreq_register_notifier(struct devfreq *devfreq, > > - struct notifier_block *nb, > > - unsigned int list) > > + struct notifier_block *nb, > > + unsigned int list) > > { > > int ret =3D 0; > > > > @@ -1686,9 +1685,9 @@ EXPORT_SYMBOL(devm_devfreq_register_notifier); > > * @list: DEVFREQ_TRANSITION_NOTIFIER. > > */ > > void devm_devfreq_unregister_notifier(struct device *dev, > > - struct devfreq *devfreq, > > - struct notifier_block *nb, > > - unsigned int list) > > + struct devfreq *devfreq, > > + struct notifier_block *nb, > > + unsigned int list) > > { > > WARN_ON(devres_release(dev, devm_devfreq_notifier_release, > > devm_devfreq_dev_match, devfreq)); > > > > -- > Best Regards, > Chanwoo Choi > Samsung Electronics