linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: battery: Changed leading spaces to tab
@ 2013-05-08 16:09 GBGamer
  2013-05-08 22:05 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: GBGamer @ 2013-05-08 16:09 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi, linux-kernel, GBGamer

Fixed coding style problems in battery.c
---
 drivers/acpi/battery.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index e710045..3c1784b 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -663,9 +663,9 @@ static void acpi_battery_quirks(struct acpi_battery *battery)
 	if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags))
 		return ;
 
-        if (battery->full_charge_capacity == 100 &&
-            battery->rate_now == ACPI_BATTERY_VALUE_UNKNOWN &&
-            battery->capacity_now >=0 && battery->capacity_now <= 100) {
+	if (battery->full_charge_capacity == 100 &&
+		battery->rate_now == ACPI_BATTERY_VALUE_UNKNOWN &&
+		battery->capacity_now >=0 && battery->capacity_now <= 100) {
 		set_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags);
 		battery->full_charge_capacity = battery->design_capacity;
 		battery->capacity_now = (battery->capacity_now *
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: battery: Changed leading spaces to tab
  2013-05-08 16:09 [PATCH] ACPI: battery: Changed leading spaces to tab GBGamer
@ 2013-05-08 22:05 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2013-05-08 22:05 UTC (permalink / raw)
  To: GBGamer; +Cc: lenb, linux-acpi, linux-kernel, GBGamer

On Wednesday, May 08, 2013 09:09:29 AM GBGamer wrote:
> Fixed coding style problems in battery.c

First off, patches without a sign-off are not applicable.

Second, ->

> ---
>  drivers/acpi/battery.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
> index e710045..3c1784b 100644
> --- a/drivers/acpi/battery.c
> +++ b/drivers/acpi/battery.c
> @@ -663,9 +663,9 @@ static void acpi_battery_quirks(struct acpi_battery *battery)
>  	if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags))
>  		return ;
>  
> -        if (battery->full_charge_capacity == 100 &&
> -            battery->rate_now == ACPI_BATTERY_VALUE_UNKNOWN &&
> -            battery->capacity_now >=0 && battery->capacity_now <= 100) {
> +	if (battery->full_charge_capacity == 100 &&
> +		battery->rate_now == ACPI_BATTERY_VALUE_UNKNOWN &&
> +		battery->capacity_now >=0 && battery->capacity_now <= 100) {

-> this isn't entirely correct, because the indentation pattern used in the
kernel for continuations of if () conditionals is one tab and four spaces
(whereas you've used two tabs).

>  		set_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags);
>  		battery->full_charge_capacity = battery->design_capacity;
>  		battery->capacity_now = (battery->capacity_now *

Thanks,
Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-08 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 16:09 [PATCH] ACPI: battery: Changed leading spaces to tab GBGamer
2013-05-08 22:05 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).