fwts:master

Last commit made on 2020-11-30
Get this branch:
git clone -b master https://git.launchpad.net/fwts

Branch merges

Branch information

Name:
master
Repository:
lp:fwts

Recent commits

4ad3e37... by Alex Hung on 2020-11-26

acpi: fadt: X_GPE0/1_BLK can be zero when not used

ACPI spec states "if this register block is not supported, this field
contains zero".

This patch also replaces spaces by a tab for fwts_acpi_gas struct.

Signed-off-by: Alex Hung <email address hidden>
Acked-by: Colin Ian King <email address hidden>
Acked-by: Ivan Hu <email address hidden>

d289e94... by Colin Ian King on 2020-11-26

src: Clean-up: remove trailing spaces and tabs from lines

Remove some trailing whitespaces from code. No functional change.

Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Ivan Hu <email address hidden>

70d34cd... by Colin Ian King on 2020-11-26

lib: fwts_firmware: cast 1 to UL to ensure no signed extension, clean up comments

Ensure the value being shifted is unsigned to avoid any signed extension
warnings by static analysis. Also clean up a few comments.

Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Ivan Hu <email address hidden>

95b12d8... by Colin Ian King on 2020-11-26

sbbr/fadt: Clean up indentation of a few lines

There are a few lines of code that require indentation clean-ups.
Fix them.

Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Ivan Hu <email address hidden>

a1094fe... by Colin Ian King on 2020-11-26

Replace FWTS_ARRAY_LEN with FWTS_ARRAY_SIZE

There is duplication of functionality with macro FWTS_ARRAY_LEN;
replace it with FWTS_ARRAY_SIZE.

Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Ivan Hu <email address hidden>

358370f... by Colin Ian King on 2020-11-26

lib: replace FWTS_ACPI_FADT_PREFERRED_PM_PROFILE with function

Replace the macro FWTS_ACPI_FADT_PREFERRED_PM_PROFILE with a function
that performs full range checking.

Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Ivan Hu <email address hidden>

afceaf0... by Alex Hung on 2020-11-26

acpi: method: define marcos for D3hot and D3cold

Signed-off-by: Alex Hung <email address hidden>
Acked-by: Colin Ian King <email address hidden>
Acked-by: Ivan Hu <email address hidden>

deb086d... by Ivan Hu on 2020-11-25

lib: fwts_version.h - update to V20.11.00

Signed-off-by: Ivan Hu <email address hidden>

a538c1e... by Ivan Hu on 2020-11-25

debian: update changelog

Signed-off-by: Ivan Hu <email address hidden>

212e2dd... by Ivan Hu on 2020-11-25

lib: fwts_acpi_table.c: fix build fail

fwts_acpi_tables.c: In function ‘fwts_acpi_is_reduced_hardware’:
fwts_acpi_tables.c:293:10: error: implicit conversion from ‘enum <anonymous>’ to ‘fwts_bool’ [-Werror=enum-conversion]
  293 | return FWTS_ERROR;
      | ^~~~~~~~~~
fwts_acpi_tables.c:297:10: error: implicit conversion from ‘enum <anonymous>’ to ‘fwts_bool’ [-Werror=enum-conversion]
  297 | return FWTS_ERROR;
      | ^~~~~~~~~~

Also modify some codes for affecting the patch,
lib: refactor fwts_acpi_is_reduced_hardware

Signed-off-by: Ivan Hu <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Colin Ian King <email address hidden>