Skip to contentSkip to conversation

ACPI: battery: Changed leading spaces to tab

PATCH In review GBGamer 2 participants 2 messages May 8, 2013 ACPI

lore
Share & tools
lore

GBGamer

author
#0 lore raw

PATCH 1/1 ACPI: battery: Changed leading spaces to tab

Fixed coding style problems in battery.c

---
 drivers/acpi/battery.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/battery.c +3 -3
index e710045..3c1784b 100644
@@ -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 *
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · GBGamer

Fixed coding style problems in battery.c

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

Second, ->

Quoted 9 lines
---
 drivers/acpi/battery.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/battery.c +0 -0
index e710045..3c1784b 100644

drivers/acpi/battery.c static void acpi_battery_quirks(struct acpi_battery *battery) · line 668

Quoted 9 lines
drivers/acpi/battery.c +3 -3
@@ -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).

drivers/acpi/battery.c static void acpi_battery_quirks(struct acpi_battery *battery) · line 671

Quoted 3 lines
drivers/acpi/battery.c +0 -0
 		set_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags);
 		battery->full_charge_capacity = battery->design_capacity;
 		battery->capacity_now = (battery->capacity_now *

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.