Skip to content

Commit c6237b2

Browse files
qzedrafaeljw
authored andcommitted
ACPI: Fix whitespace inconsistencies
Replaces spaces with tabs where spaces have been (inconsistently) used for indentation and removes trailing whitespaces. Signed-off-by: Maximilian Luz <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f8394f2 commit c6237b2

File tree

15 files changed

+40
-40
lines changed

15 files changed

+40
-40
lines changed

drivers/acpi/acpi_video.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ acpi_video_bqc_value_to_level(struct acpi_video_device *device,
578578
ACPI_VIDEO_FIRST_LEVEL - 1 - bqc_value;
579579

580580
level = device->brightness->levels[bqc_value +
581-
ACPI_VIDEO_FIRST_LEVEL];
581+
ACPI_VIDEO_FIRST_LEVEL];
582582
} else {
583583
level = bqc_value;
584584
}
@@ -990,8 +990,8 @@ acpi_video_init_brightness(struct acpi_video_device *device)
990990
goto out_free_levels;
991991

992992
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
993-
"found %d brightness levels\n",
994-
br->count - ACPI_VIDEO_FIRST_LEVEL));
993+
"found %d brightness levels\n",
994+
br->count - ACPI_VIDEO_FIRST_LEVEL));
995995
return 0;
996996

997997
out_free_levels:

drivers/acpi/battery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ static int acpi_battery_update(struct acpi_battery *battery, bool resume)
987987
*/
988988
if ((battery->state & ACPI_BATTERY_STATE_CRITICAL) ||
989989
(test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags) &&
990-
(battery->capacity_now <= battery->alarm)))
990+
(battery->capacity_now <= battery->alarm)))
991991
acpi_pm_wakeup_event(&battery->device->dev);
992992

993993
return result;

drivers/acpi/event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int acpi_notifier_call_chain(struct acpi_device *dev, u32 type, u32 data)
3131
event.type = type;
3232
event.data = data;
3333
return (blocking_notifier_call_chain(&acpi_chain_head, 0, (void *)&event)
34-
== NOTIFY_BAD) ? -EINVAL : 0;
34+
== NOTIFY_BAD) ? -EINVAL : 0;
3535
}
3636
EXPORT_SYMBOL(acpi_notifier_call_chain);
3737

drivers/acpi/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int acpi_add_power_resource(acpi_handle handle);
134134
void acpi_power_add_remove_device(struct acpi_device *adev, bool add);
135135
int acpi_power_wakeup_list_init(struct list_head *list, int *system_level);
136136
int acpi_device_sleep_wake(struct acpi_device *dev,
137-
int enable, int sleep_state, int dev_state);
137+
int enable, int sleep_state, int dev_state);
138138
int acpi_power_get_inferred_state(struct acpi_device *device, int *state);
139139
int acpi_power_on_resources(struct acpi_device *device, int state);
140140
int acpi_power_transition(struct acpi_device *device, int state);

drivers/acpi/nfit/core.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,10 +2175,10 @@ static int acpi_nfit_register_dimms(struct acpi_nfit_desc *acpi_desc)
21752175
* these commands.
21762176
*/
21772177
enum nfit_aux_cmds {
2178-
NFIT_CMD_TRANSLATE_SPA = 5,
2179-
NFIT_CMD_ARS_INJECT_SET = 7,
2180-
NFIT_CMD_ARS_INJECT_CLEAR = 8,
2181-
NFIT_CMD_ARS_INJECT_GET = 9,
2178+
NFIT_CMD_TRANSLATE_SPA = 5,
2179+
NFIT_CMD_ARS_INJECT_SET = 7,
2180+
NFIT_CMD_ARS_INJECT_CLEAR = 8,
2181+
NFIT_CMD_ARS_INJECT_GET = 9,
21822182
};
21832183

21842184
static void acpi_nfit_init_dsms(struct acpi_nfit_desc *acpi_desc)
@@ -2632,7 +2632,7 @@ static int acpi_nfit_blk_region_enable(struct nvdimm_bus *nvdimm_bus,
26322632
nfit_blk->bdw_offset = nfit_mem->bdw->offset;
26332633
mmio = &nfit_blk->mmio[BDW];
26342634
mmio->addr.base = devm_nvdimm_memremap(dev, nfit_mem->spa_bdw->address,
2635-
nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr));
2635+
nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr));
26362636
if (!mmio->addr.base) {
26372637
dev_dbg(dev, "%s failed to map bdw\n",
26382638
nvdimm_name(nvdimm));

drivers/acpi/pci_irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static int acpi_pci_irq_check_entry(acpi_handle handle, struct pci_dev *dev,
175175
* configure the IRQ assigned to this slot|dev|pin. The 'source_index'
176176
* indicates which resource descriptor in the resource template (of
177177
* the link device) this interrupt is allocated from.
178-
*
178+
*
179179
* NOTE: Don't query the Link Device for IRQ information at this time
180180
* because Link Device enumeration may not have occurred yet
181181
* (e.g. exists somewhere 'below' this _PRT entry in the ACPI

drivers/acpi/pci_link.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* Copyright (C) 2001, 2002 Paul Diefenbaugh <[email protected]>
77
* Copyright (C) 2002 Dominik Brodowski <[email protected]>
88
*
9-
* TBD:
10-
* 1. Support more than one IRQ resource entry per link device (index).
9+
* TBD:
10+
* 1. Support more than one IRQ resource entry per link device (index).
1111
* 2. Implement start/stop mechanism and use ACPI Bus Driver facilities
1212
* for IRQ management (e.g. start()->_SRS).
1313
*/
@@ -249,8 +249,8 @@ static int acpi_pci_link_get_current(struct acpi_pci_link *link)
249249
}
250250
}
251251

252-
/*
253-
* Query and parse _CRS to get the current IRQ assignment.
252+
/*
253+
* Query and parse _CRS to get the current IRQ assignment.
254254
*/
255255

256256
status = acpi_walk_resources(link->device->handle, METHOD_NAME__CRS,
@@ -396,7 +396,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
396396
/*
397397
* "acpi_irq_balance" (default in APIC mode) enables ACPI to use PIC Interrupt
398398
* Link Devices to move the PIRQs around to minimize sharing.
399-
*
399+
*
400400
* "acpi_irq_nobalance" (default in PIC mode) tells ACPI not to move any PIC IRQs
401401
* that the BIOS has already set to active. This is necessary because
402402
* ACPI has no automatic means of knowing what ISA IRQs are used. Note that
@@ -414,7 +414,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
414414
*
415415
* Note that PCI IRQ routers have a list of possible IRQs,
416416
* which may not include the IRQs this table says are available.
417-
*
417+
*
418418
* Since this heuristic can't tell the difference between a link
419419
* that no device will attach to, vs. a link which may be shared
420420
* by multiple active devices -- it is not optimal.

drivers/acpi/pci_mcfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static int pci_mcfg_quirk_matches(struct mcfg_fixup *f, u16 segment,
173173
{
174174
if (!memcmp(f->oem_id, mcfg_oem_id, ACPI_OEM_ID_SIZE) &&
175175
!memcmp(f->oem_table_id, mcfg_oem_table_id,
176-
ACPI_OEM_TABLE_ID_SIZE) &&
176+
ACPI_OEM_TABLE_ID_SIZE) &&
177177
f->oem_revision == mcfg_oem_revision &&
178178
f->segment == segment &&
179179
resource_contains(&f->bus_range, bus_range))

drivers/acpi/power.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* 1. via "Device Specific (D-State) Control"
1414
* 2. via "Power Resource Control".
1515
* The code below deals with ACPI Power Resources control.
16-
*
16+
*
1717
* An ACPI "power resource object" represents a software controllable power
1818
* plane, clock plane, or other resource depended on by a device.
1919
*
@@ -645,7 +645,7 @@ int acpi_power_wakeup_list_init(struct list_head *list, int *system_level_p)
645645
* -ENODEV if the execution of either _DSW or _PSW has failed
646646
*/
647647
int acpi_device_sleep_wake(struct acpi_device *dev,
648-
int enable, int sleep_state, int dev_state)
648+
int enable, int sleep_state, int dev_state)
649649
{
650650
union acpi_object in_arg[3];
651651
struct acpi_object_list arg_list = { 3, in_arg };
@@ -690,7 +690,7 @@ int acpi_device_sleep_wake(struct acpi_device *dev,
690690

691691
/*
692692
* Prepare a wakeup device, two steps (Ref ACPI 2.0:P229):
693-
* 1. Power on the power resources required for the wakeup device
693+
* 1. Power on the power resources required for the wakeup device
694694
* 2. Execute _DSW (Device Sleep Wake) or (deprecated in ACPI 3.0) _PSW (Power
695695
* State Wake) for the device, if present
696696
*/

drivers/acpi/processor_perflib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static int acpi_processor_get_performance_states(struct acpi_processor *pr)
354354
(u32) px->control, (u32) px->status));
355355

356356
/*
357-
* Check that ACPI's u64 MHz will be valid as u32 KHz in cpufreq
357+
* Check that ACPI's u64 MHz will be valid as u32 KHz in cpufreq
358358
*/
359359
if (!px->core_frequency ||
360360
((u32)(px->core_frequency * 1000) !=
@@ -627,7 +627,7 @@ int acpi_processor_preregister_performance(
627627
goto err_ret;
628628

629629
/*
630-
* Now that we have _PSD data from all CPUs, lets setup P-state
630+
* Now that we have _PSD data from all CPUs, lets setup P-state
631631
* domain info.
632632
*/
633633
for_each_possible_cpu(i) {
@@ -693,7 +693,7 @@ int acpi_processor_preregister_performance(
693693
if (match_pdomain->domain != pdomain->domain)
694694
continue;
695695

696-
match_pr->performance->shared_type =
696+
match_pr->performance->shared_type =
697697
pr->performance->shared_type;
698698
cpumask_copy(match_pr->performance->shared_cpu_map,
699699
pr->performance->shared_cpu_map);

0 commit comments

Comments
 (0)