mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ACPICA: Core: Major update for code formatting, no functional changes
ACPICA commit dfa394471f6c01b2ee9433dbc143ec70cb9bca72
Mostly indentation inconsistencies across the code. Split
some long lines, etc.
Link: dfa39447
Signed-off-by: Bob Moore <[email protected]>
Signed-off-by: Lv Zheng <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
cd162b35a2
commit
1fad87385e
100 changed files with 634 additions and 493 deletions
|
|
@ -85,6 +85,7 @@ static int current_char_ptr = 1;
|
|||
|
||||
int acpi_getopt_argument(int argc, char **argv)
|
||||
{
|
||||
|
||||
acpi_gbl_optind--;
|
||||
current_char_ptr++;
|
||||
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ ACPI_FILE acpi_os_open_file(const char *path, u8 modes)
|
|||
if (modes & ACPI_FILE_WRITING) {
|
||||
modes_str[i++] = 'w';
|
||||
}
|
||||
|
||||
if (modes & ACPI_FILE_BINARY) {
|
||||
modes_str[i++] = 'b';
|
||||
}
|
||||
|
|
@ -101,6 +102,7 @@ ACPI_FILE acpi_os_open_file(const char *path, u8 modes)
|
|||
|
||||
void acpi_os_close_file(ACPI_FILE file)
|
||||
{
|
||||
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
|
|
@ -202,6 +204,7 @@ acpi_status acpi_os_set_file_offset(ACPI_FILE file, long offset, u8 from)
|
|||
if (from == ACPI_FILE_BEGIN) {
|
||||
ret = fseek(file, offset, SEEK_SET);
|
||||
}
|
||||
|
||||
if (from == ACPI_FILE_END) {
|
||||
ret = fseek(file, offset, SEEK_END);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,6 +48,18 @@
|
|||
|
||||
static int ap_is_existing_file(char *pathname);
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* FUNCTION: ap_is_existing_file
|
||||
*
|
||||
* PARAMETERS: pathname - Output filename
|
||||
*
|
||||
* RETURN: 0 on success
|
||||
*
|
||||
* DESCRIPTION: Query for file overwrite if it already exists.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
static int ap_is_existing_file(char *pathname)
|
||||
{
|
||||
#ifndef _GNU_EFI
|
||||
|
|
@ -136,6 +148,7 @@ int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance)
|
|||
} else {
|
||||
ACPI_MOVE_NAME(filename, table->signature);
|
||||
}
|
||||
|
||||
filename[0] = (char)tolower((int)filename[0]);
|
||||
filename[1] = (char)tolower((int)filename[1]);
|
||||
filename[2] = (char)tolower((int)filename[2]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue