Skip to content

Commit dcf0c2e

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: SPCR: Amend indentation
1) Remove unnecessary blank lines. 2) Reformat one comment for consistency. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent da30a34 commit dcf0c2e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

drivers/acpi/spcr.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ static bool xgene_8250_erratum_present(struct acpi_table_spcr *tb)
7171

7272
/**
7373
* acpi_parse_spcr() - parse ACPI SPCR table and add preferred console
74-
*
7574
* @enable_earlycon: set up earlycon for the console specified by the table
7675
* @enable_console: setup the console specified by the table.
7776
*
@@ -82,7 +81,6 @@ static bool xgene_8250_erratum_present(struct acpi_table_spcr *tb)
8281
*
8382
* When CONFIG_ACPI_SPCR_TABLE is defined, this function should be called
8483
* from arch initialization code as soon as the DT/ACPI decision is made.
85-
*
8684
*/
8785
int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
8886
{
@@ -97,9 +95,7 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
9795
if (acpi_disabled)
9896
return -ENODEV;
9997

100-
status = acpi_get_table(ACPI_SIG_SPCR, 0,
101-
(struct acpi_table_header **)&table);
102-
98+
status = acpi_get_table(ACPI_SIG_SPCR, 0, (struct acpi_table_header **)&table);
10399
if (ACPI_FAILURE(status))
104100
return -ENOENT;
105101

@@ -202,7 +198,8 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
202198
if (xgene_8250_erratum_present(table)) {
203199
iotype = "mmio32";
204200

205-
/* for xgene v1 and v2 we don't know the clock rate of the
201+
/*
202+
* For xgene v1 and v2 we don't know the clock rate of the
206203
* UART so don't attempt to change to the baud rate state
207204
* in the table because driver cannot calculate the dividers
208205
*/

0 commit comments

Comments
 (0)