From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755124Ab3EMQ2H (ORCPT ); Mon, 13 May 2013 12:28:07 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:42755 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753090Ab3EMQ2E (ORCPT ); Mon, 13 May 2013 12:28:04 -0400 Message-ID: <5191148E.7050205@wwwdotorg.org> Date: Mon, 13 May 2013 10:27:58 -0600 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Viresh Kumar CC: rjw@sisk.pl, linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, Sekhar Nori , Ben Dooks , Kukjin Kim , Simon Horman , Magnus Damm , Ralf Baechle , Arnd Bergmann , Benjamin Herrenschmidt , Paul Mackerras , Olof Johansson , Srinidhi Kasagar , Linus Walleij Subject: Re: [PATCH V1 resend] cpufreq: Raname index as data in cpufreq_frequency_table References: <7e12acada8adcba5f4eb72f6c49e38aaf00a294f.1368434974.git.viresh.kumar@linaro.org> In-Reply-To: <7e12acada8adcba5f4eb72f6c49e38aaf00a294f.1368434974.git.viresh.kumar@linaro.org> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/13/2013 06:57 AM, Viresh Kumar wrote: > "Index" field of struct cpufreq_frequency_table was never index and isn't used > at all by cpufreq core. And is only useful for cpufreq drivers for their > personal use. > > Many people now a days blindly set it in ascending order with the assumption > that core is using it for some work. > > This patch renames it to "data" as that's what its purpose it. All users of the > same are fixed too. > diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c > -/* Frequency table index must be sequential starting at 0 */ > +/* Frequency table data must be sequential starting at 0 */ I assume that comment is due to the assumption you're trying to remove. Should the comment be removed/corrected now? Perhaps the .data field isn't even needed any more in this driver? > static struct cpufreq_frequency_table freq_table[] = { > { 0, 216000 }, > { 1, 312000 },