linux/include/acpi
Raag Jadav aca1a5287e ACPI: bus: allow _UID matching for integer zero
Commit b2b32a1738 ("ACPI: bus: update acpi_dev_hid_uid_match() to
support multiple types") added _UID matching support for both integer
and string types, which satisfies NULL @uid2 argument for string types
using inversion, but this logic prevents _UID comparision in case the
argument is integer 0, which may result in false positives.

Fix this using _Generic(), which will allow NULL @uid2 argument for
string types as well as _UID matching for all possible integer values.

Fixes: b2b32a1738 ("ACPI: bus: update acpi_dev_hid_uid_match() to support multiple types")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
[ rjw: Comment adjustment ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2024-04-08 16:57:51 +02:00
..
platform
acbuffer.h
acconfig.h
acexcep.h
acnames.h
acoutput.h
acpi.h
acpi_bus.h ACPI: bus: allow _UID matching for integer zero 2024-04-08 16:57:51 +02:00
acpi_drivers.h
acpi_io.h
acpi_lpat.h
acpi_numa.h
acpiosxf.h
acpixf.h
acrestyp.h
actbl.h
actbl1.h
actbl2.h ACPICA: MADT: Add new MADT GICC/GICR/ITS non-coherent flags handling 2024-01-09 15:25:37 +01:00
actbl3.h
actypes.h
acuuid.h
apei.h
battery.h
button.h
cppc_acpi.h ACPI: CPPC: Add helper to get the highest performance value 2024-01-31 14:54:50 +01:00
ghes.h
hed.h
nfit.h
pcc.h
proc_cap_intel.h
processor.h
reboot.h
video.h ACPI: video: Add comment about acpi_video_backlight_use_native() usage 2023-11-20 17:47:07 +01:00