Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752860AbbD3TrL (ORCPT ); Thu, 30 Apr 2015 15:47:11 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:54863 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752410AbbD3TrH (ORCPT ); Thu, 30 Apr 2015 15:47:07 -0400 From: "Rafael J. Wysocki" To: Fabian Frederick Cc: Joe Perches , linux-kernel@vger.kernel.org, Viresh Kumar , linux-pm@vger.kernel.org Subject: Re: [PATCH V2 linux-next] cpufreq: pxa: replace typedef pxa_freqs_t by structure Date: Thu, 30 Apr 2015 22:12:01 +0200 Message-ID: <8968478.AeaVEX5OB0@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.0.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1161092225.77460.1430418536315.open-xchange@webmail.nmp.proximus.be> References: <1430335980-9765-1-git-send-email-fabf@skynet.be> <1430369201.2575.10.camel@perches.com> <1161092225.77460.1430418536315.open-xchange@webmail.nmp.proximus.be> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1558 Lines: 44 On Thursday, April 30, 2015 08:28:56 PM Fabian Frederick wrote: > > > On 30 April 2015 at 06:46 Joe Perches wrote: > > > > > > On Wed, 2015-04-29 at 21:32 +0200, Fabian Frederick wrote: > > > typedef is not really useful here. Replace it by structure > > > to improve readability.typedef should only be used in some cases. > > > (See Documentation/CodingStyle Chapter 5 for details). > > > > trivia: > > > > > diff --git a/drivers/cpufreq/pxa2xx-cpufreq.c > > > b/drivers/cpufreq/pxa2xx-cpufreq.c > > [] > > > @@ -86,7 +86,7 @@ static unsigned int sdram_rows; > > > /* Use the run mode frequencies for the CPUFREQ_POLICY_PERFORMANCE policy > > >*/ > > > #define CCLKCFG CCLKCFG_TURBO | CCLKCFG_FCS > > > > > > -static pxa_freqs_t pxa255_run_freqs[] = > > > +static struct pxa_freqs pxa255_run_freqs[] = > > > > Should these be const? > > AFAICS yes but this needs some fixes: > drivers/cpufreq/pxa2xx-cpufreq.c: In function 'find_freq_tables': > drivers/cpufreq/pxa2xx-cpufreq.c:218:15: warning: assignment discards 'const' > qualifier from pointer target type > *pxa_freqs = pxa255_run_freqs; > ^ > Maybe another patch ? Yes. One change at a time pretty please. -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/