Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6425510imu; Mon, 21 Jan 2019 08:41:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Z9XGuRk1yyojfeTQdliQSilUifVLSgr7/hABWnRDAfnqC+kcs4e9Cauyi6BrLhhpCADyt X-Received: by 2002:a17:902:28e6:: with SMTP id f93mr30565615plb.239.1548088898002; Mon, 21 Jan 2019 08:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548088897; cv=none; d=google.com; s=arc-20160816; b=gWZaWHkRjLwJUsPr8Wi6BRLeYZJ0Gdf/X+42wAfkoHiqXp67YxvfH4GPSgCbzMOiaY KCKtBc6G8aDKSlUqItcgNwZKk0hQno5GoW9eZvJGbxnRrlDHlXOXVtxp+xromQUwJT4Q 7ESif8SOYHXj0Ua6JKzOAJClZc2qXjUf5ikvgcr/n6X6cE/cAq10KHWP0wKcVP/J+CMQ Dkh1y5bRAKeIWuUQcDTLAexZRVXgTX7KTkndpB0GSqzljjewEq+v1yInGBoqwgnp2q2j 658PGCZ8lXS41E5yFv0NjllWJGEWtn3wG7RuxlNf3o/tr0Ix3b/arMyJyakPr3Vr6TdB lj9g== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=K4iRIx1vylfnbBgLc10NGs4CK8f33XN0r3VjB7x1k/E=; b=yIiuJOH/ZtDUfFr/HJDbxHV9Jo4HKivTIFUgmnHp3BVZK8lt6xlzD6JnZLjS0eZvdt SiUlaPoMVpljEK5HW3x+r5peVLlAs0XO/ojoeWdHkaoCzfledcmhLurFb5qPJKN/hN/W O0ITvxag54Iva13eNwoEshAFGOvXxrOsYRHbEumw5TlIe4iehmW/o4a0cBQsC5dUNHpO MYuH0bZ9TUdp1lJSPKIr4K9+V1qKI/v0xO4H4RzjclyMO8I8ACQWWFWGF7z5ranM8Tu9 enS8Cf9HOJUicQAg/tKEytdFzJRvPjNx/ShXYRHy9XtKmIm5JlW86qlm/U1mc56wRchp RnQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si12345846pfi.125.2019.01.21.08.41.21; Mon, 21 Jan 2019 08:41:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730408AbfAUQjZ (ORCPT + 99 others); Mon, 21 Jan 2019 11:39:25 -0500 Received: from smtprelay0066.hostedemail.com ([216.40.44.66]:51151 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729130AbfAUQjY (ORCPT ); Mon, 21 Jan 2019 11:39:24 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 364EF180A8CB5; Mon, 21 Jan 2019 16:39:23 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:152:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2691:2827:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:4321:4605:5007:6691:7774:7901:10004:10400:10848:11026:11232:11233:11658:11783:11914:12048:12114:12740:12895:13069:13311:13357:13894:14096:14097:14659:14721:21080:21451:21627:30012:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: base76_6ee5bcb64cf0b X-Filterd-Recvd-Size: 2264 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA; Mon, 21 Jan 2019 16:39:21 +0000 (UTC) Message-ID: Subject: Re: [PATCH 1/3] PM / devfreq: fix indentation in devfreq_add_device() From: Joe Perches To: Chanwoo Choi , Yangtao Li , myungjoo.ham@samsung.com, kyungmin.park@samsung.com, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Date: Mon, 21 Jan 2019 08:39:20 -0800 In-Reply-To: References: <20190119160454.23151-1-tiny.windzz@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.