diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2022-09-30 13:59:14 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-10-03 10:40:04 +0300 |
commit | 8d05fc039456517d2c246c7b202891188ba40c4d (patch) | |
tree | b9655715ea55679b961f5805ee3d0e4527d08556 /drivers/platform/x86/compal-laptop.c | |
parent | c928df03bde92d70babeb22d500f528256758aee (diff) | |
download | linux-8d05fc039456517d2c246c7b202891188ba40c4d.tar.xz |
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>
Diffstat (limited to 'drivers/platform/x86/compal-laptop.c')
-rw-r--r-- | drivers/platform/x86/compal-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/compal-laptop.c b/drivers/platform/x86/compal-laptop.c index 72e1523edd31..e10d2f64dfad 100644 --- a/drivers/platform/x86/compal-laptop.c +++ b/drivers/platform/x86/compal-laptop.c @@ -1060,7 +1060,7 @@ static int __init compal_init(void) if (ret) goto err_backlight; - compal_device = platform_device_alloc(DRIVER_NAME, -1); + compal_device = platform_device_alloc(DRIVER_NAME, PLATFORM_DEVID_NONE); if (!compal_device) { ret = -ENOMEM; goto err_platform_driver; |