platform/x86: use PLATFORM_DEVID_NONE instead of -1
authorBarnabás Pőcze <pobrn@protonmail.com>
Fri, 30 Sep 2022 10:59:14 +0000 (10:59 +0000)
committerHans de Goede <hdegoede@redhat.com>
Mon, 3 Oct 2022 07:40:04 +0000 (09:40 +0200)
commit8d05fc039456517d2c246c7b202891188ba40c4d
treeb9655715ea55679b961f5805ee3d0e4527d08556
parentc928df03bde92d70babeb22d500f528256758aee
platform/x86: use PLATFORM_DEVID_NONE instead of -1

Use the `PLATFORM_DEVID_NONE` constant instead of
hard-coding -1 when creating a platform device.

No functional changes are intended.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20220930104857.2796923-1-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
25 files changed:
drivers/platform/x86/acer-wmi.c
drivers/platform/x86/acerhdf.c
drivers/platform/x86/amd/hsmp.c
drivers/platform/x86/amilo-rfkill.c
drivers/platform/x86/asus-laptop.c
drivers/platform/x86/compal-laptop.c
drivers/platform/x86/dell/alienware-wmi.c
drivers/platform/x86/dell/dcdbas.c
drivers/platform/x86/dell/dell-laptop.c
drivers/platform/x86/dell/dell_rbu.c
drivers/platform/x86/eeepc-laptop.c
drivers/platform/x86/fujitsu-laptop.c
drivers/platform/x86/hdaps.c
drivers/platform/x86/hp-wmi.c
drivers/platform/x86/huawei-wmi.c
drivers/platform/x86/intel/oaktrail.c
drivers/platform/x86/mlx-platform.c
drivers/platform/x86/msi-laptop.c
drivers/platform/x86/panasonic-laptop.c
drivers/platform/x86/samsung-laptop.c
drivers/platform/x86/sony-laptop.c
drivers/platform/x86/tc1100-wmi.c
drivers/platform/x86/thinkpad_acpi.c
drivers/platform/x86/topstar-laptop.c
drivers/platform/x86/winmate-fm07-keys.c