2013-04-17 17:13:40

by Eduardo Valentin

[permalink] [raw]
Subject: [PATCH 02/30] thermal: cpu_cooling: remove trailing white spaces

Remove unnecessary white spaces.

Cc: Zhang Rui <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Eduardo Valentin <[email protected]>
---
drivers/thermal/cpu_cooling.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 778c43d..d0d6a0c 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -131,14 +131,13 @@ static int get_property(unsigned int cpu, unsigned long input,
int descend = -1;
struct cpufreq_frequency_table *table =
cpufreq_frequency_get_table(cpu);
-
+
if (!output)
return -EINVAL;

if (!table)
return -EINVAL;

-
for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) {
/* ignore invalid entries */
if (table[i].frequency == CPUFREQ_ENTRY_INVALID)
--
1.8.2.1.342.gfa7285d


2013-04-24 14:49:03

by Zhang, Rui

[permalink] [raw]
Subject: RE: [PATCH 02/30] thermal: cpu_cooling: remove trailing white spaces



> -----Original Message-----
> From: Eduardo Valentin [mailto:[email protected]]
> Sent: Thursday, April 18, 2013 1:12 AM
> To: [email protected]
> Cc: Eduardo Valentin; Zhang, Rui; [email protected]; linux-
> [email protected]
> Subject: [PATCH 02/30] thermal: cpu_cooling: remove trailing white
> spaces
> Importance: High
>
> Remove unnecessary white spaces.
>
The same comments for patch 02, 06, 09, 10, 11, 13, 18, and 30.

Can we run Lindent to fix all the coding style problem in one patch?

Thanks,
rui
> Cc: Zhang Rui <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Signed-off-by: Eduardo Valentin <[email protected]>
> ---
> drivers/thermal/cpu_cooling.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/cpu_cooling.c
> b/drivers/thermal/cpu_cooling.c index 778c43d..d0d6a0c 100644
> --- a/drivers/thermal/cpu_cooling.c
> +++ b/drivers/thermal/cpu_cooling.c
> @@ -131,14 +131,13 @@ static int get_property(unsigned int cpu,
> unsigned long input,
> int descend = -1;
> struct cpufreq_frequency_table *table =
> cpufreq_frequency_get_table(cpu);
> -
> +
> if (!output)
> return -EINVAL;
>
> if (!table)
> return -EINVAL;
>
> -
> for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) {
> /* ignore invalid entries */
> if (table[i].frequency == CPUFREQ_ENTRY_INVALID)
> --
> 1.8.2.1.342.gfa7285d

2013-04-24 15:13:31

by Zhang, Rui

[permalink] [raw]
Subject: RE: [PATCH 02/30] thermal: cpu_cooling: remove trailing white spaces



> -----Original Message-----
> From: [email protected] [mailto:linux-pm-
> [email protected]] On Behalf Of Zhang, Rui
> Sent: Wednesday, April 24, 2013 10:49 PM
> To: Eduardo Valentin; [email protected]
> Cc: [email protected]; [email protected]
> Subject: RE: [PATCH 02/30] thermal: cpu_cooling: remove trailing white
> spaces
>
>
>
> > -----Original Message-----
> > From: Eduardo Valentin [mailto:[email protected]]
> > Sent: Thursday, April 18, 2013 1:12 AM
> > To: [email protected]
> > Cc: Eduardo Valentin; Zhang, Rui; [email protected]; linux-
> > [email protected]
> > Subject: [PATCH 02/30] thermal: cpu_cooling: remove trailing white
> > spaces
> > Importance: High
> >
> > Remove unnecessary white spaces.
> >
> The same comments for patch 02, 06, 09, 10, 11, 13, 18, and 30.
>
All the other patches applied.

Thanks,
rui
> Can we run Lindent to fix all the coding style problem in one patch?
>
> Thanks,
> rui
> > Cc: Zhang Rui <[email protected]>
> > Cc: [email protected]
> > Cc: [email protected]
> > Signed-off-by: Eduardo Valentin <[email protected]>
> > ---
> > drivers/thermal/cpu_cooling.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/thermal/cpu_cooling.c
> > b/drivers/thermal/cpu_cooling.c index 778c43d..d0d6a0c 100644
> > --- a/drivers/thermal/cpu_cooling.c
> > +++ b/drivers/thermal/cpu_cooling.c
> > @@ -131,14 +131,13 @@ static int get_property(unsigned int cpu,
> > unsigned long input,
> > int descend = -1;
> > struct cpufreq_frequency_table *table =
> > cpufreq_frequency_get_table(cpu);
> > -
> > +
> > if (!output)
> > return -EINVAL;
> >
> > if (!table)
> > return -EINVAL;
> >
> > -
> > for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) {
> > /* ignore invalid entries */
> > if (table[i].frequency == CPUFREQ_ENTRY_INVALID)
> > --
> > 1.8.2.1.342.gfa7285d
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to [email protected] More majordomo info
> at http://vger.kernel.org/majordomo-info.html

2013-04-24 17:45:09

by Eduardo Valentin

[permalink] [raw]
Subject: Re: [PATCH 02/30] thermal: cpu_cooling: remove trailing white spaces

On 24-04-2013 10:48, Zhang, Rui wrote:
>
>
>> -----Original Message-----
>> From: Eduardo Valentin [mailto:[email protected]]
>> Sent: Thursday, April 18, 2013 1:12 AM
>> To: [email protected]
>> Cc: Eduardo Valentin; Zhang, Rui; [email protected]; linux-
>> [email protected]
>> Subject: [PATCH 02/30] thermal: cpu_cooling: remove trailing white
>> spaces
>> Importance: High
>>
>> Remove unnecessary white spaces.
>>
> The same comments for patch 02, 06, 09, 10, 11, 13, 18, and 30.
>
> Can we run Lindent to fix all the coding style problem in one patch?


Well, yes. The thing about Lindent is that it sometimes changes the code
in a way we do not want. It will change cpu-cooling in slightly
different way, but it will include most of the changes on the patches
above. It misses some of the changes and also does some other that are
not so nice.

I obviously would prefer to keep these patches, as, the patches are
already there. Let me know what is your call.

>
> Thanks,
> rui
>> Cc: Zhang Rui <[email protected]>
>> Cc: [email protected]
>> Cc: [email protected]
>> Signed-off-by: Eduardo Valentin <[email protected]>
>> ---
>> drivers/thermal/cpu_cooling.c | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/drivers/thermal/cpu_cooling.c
>> b/drivers/thermal/cpu_cooling.c index 778c43d..d0d6a0c 100644
>> --- a/drivers/thermal/cpu_cooling.c
>> +++ b/drivers/thermal/cpu_cooling.c
>> @@ -131,14 +131,13 @@ static int get_property(unsigned int cpu,
>> unsigned long input,
>> int descend = -1;
>> struct cpufreq_frequency_table *table =
>> cpufreq_frequency_get_table(cpu);
>> -
>> +
>> if (!output)
>> return -EINVAL;
>>
>> if (!table)
>> return -EINVAL;
>>
>> -
>> for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) {
>> /* ignore invalid entries */
>> if (table[i].frequency == CPUFREQ_ENTRY_INVALID)
>> --
>> 1.8.2.1.342.gfa7285d
>
>
>