Stefan Binding 06865077b3 ACPI: property: Fix type detection of unified integer reading functions
The current code expects the type of the value to be an integer type,
instead the value passed to the macro is a pointer.
Ensure the size comparison uses the correct pointer type to choose the
max value, instead of using the integer type.

Fixes: 923044133367 ("ACPI: property: Unify integer value reading functions")
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: John Garry <john.garry@huawei.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2022-08-25 13:28:44 +02:00
..
2022-05-25 15:37:07 +02:00
2022-05-27 21:24:19 -07:00
2022-01-12 15:57:59 -08:00
2022-04-05 10:24:38 +02:00
2022-01-12 19:40:31 +01:00
2022-07-29 19:58:52 +02:00
2022-08-02 11:12:25 -07:00
2020-11-09 19:25:20 +01:00
2022-05-25 15:37:07 +02:00
2022-08-03 14:38:02 -07:00
2019-11-13 11:12:08 +01:00
2022-05-27 21:24:19 -07:00
2022-01-22 08:33:37 +02:00
2021-06-07 15:36:46 +02:00
2020-11-09 19:08:06 +01:00
2022-08-06 10:19:51 -07:00
2020-11-09 19:08:06 +01:00