diff options
Diffstat (limited to 'drivers/acpi/acpica/exfield.c')
-rw-r--r-- | drivers/acpi/acpica/exfield.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/acpi/acpica/exfield.c b/drivers/acpi/acpica/exfield.c index 1ff42c07b42b..6907ce0c704c 100644 --- a/drivers/acpi/acpica/exfield.c +++ b/drivers/acpi/acpica/exfield.c | |||
@@ -186,12 +186,11 @@ acpi_ex_read_data_from_field(struct acpi_walk_state * walk_state, | |||
186 | access_length); | 186 | access_length); |
187 | 187 | ||
188 | /* | 188 | /* |
189 | * Add additional 2 bytes for modeled generic_serial_bus data buffer: | 189 | * Add additional 2 bytes for the generic_serial_bus data buffer: |
190 | * typedef struct { | 190 | * |
191 | * BYTEStatus; // Byte 0 of the data buffer | 191 | * Status; (Byte 0 of the data buffer) |
192 | * BYTELength; // Byte 1 of the data buffer | 192 | * Length; (Byte 1 of the data buffer) |
193 | * BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, | 193 | * Data[x-1]; (Bytes 2-x of the arbitrary length data buffer) |
194 | * } | ||
195 | */ | 194 | */ |
196 | length += 2; | 195 | length += 2; |
197 | function = ACPI_READ | (accessor_type << 16); | 196 | function = ACPI_READ | (accessor_type << 16); |
@@ -368,12 +367,11 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc, | |||
368 | access_length); | 367 | access_length); |
369 | 368 | ||
370 | /* | 369 | /* |
371 | * Add additional 2 bytes for modeled generic_serial_bus data buffer: | 370 | * Add additional 2 bytes for the generic_serial_bus data buffer: |
372 | * typedef struct { | 371 | * |
373 | * BYTEStatus; // Byte 0 of the data buffer | 372 | * Status; (Byte 0 of the data buffer) |
374 | * BYTELength; // Byte 1 of the data buffer | 373 | * Length; (Byte 1 of the data buffer) |
375 | * BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, | 374 | * Data[x-1]; (Bytes 2-x of the arbitrary length data buffer) |
376 | * } | ||
377 | */ | 375 | */ |
378 | length += 2; | 376 | length += 2; |
379 | function = ACPI_WRITE | (accessor_type << 16); | 377 | function = ACPI_WRITE | (accessor_type << 16); |