diff options
author | 2024-06-06 23:54:16 +0300 | |
---|---|---|
committer | 2024-06-13 21:23:05 +0200 | |
commit | f42cfd5ceced62799a7dd82899b03d7b9575fc22 (patch) | |
tree | 646c366f6d9cc2de544d0b01e1ff553f134e5faa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ACPI: PMIC: Convert pr_*() to dev_*() printing macros (diff) | |
download | linux-rng-f42cfd5ceced62799a7dd82899b03d7b9575fc22.tar.xz linux-rng-f42cfd5ceced62799a7dd82899b03d7b9575fc22.zip |
ACPI: PMIC: Replace open coded be16_to_cpu()
It's easier to understand the nature of a data type when
it's written explicitly. With that, replace open coded
endianess conversion.
As a side effect it fixes the returned value of
intel_crc_pmic_update_aux() since ACPI PMIC core code
expects negative or zero and never uses positive one.
While at it, use macros from bits.h to reduce a room for mistake.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions