diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-06-06 23:54:16 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-06-13 21:23:05 +0200 |
commit | f42cfd5ceced62799a7dd82899b03d7b9575fc22 (patch) | |
tree | 646c366f6d9cc2de544d0b01e1ff553f134e5faa /scripts/gdb/linux/slab.py | |
parent | 1dd804af345a126594a8b8e80510590b5775073b (diff) |
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 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions