mfd: kempld: Use PLATFORM_DEVID_NONE instead of -1
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Feb 2024 19:49:53 +0000 (21:49 +0200)
committerLee Jones <lee@kernel.org>
Fri, 10 May 2024 14:39:16 +0000 (15:39 +0100)
Use the `PLATFORM_DEVID_NONE` constant instead of hard-coding -1
when creating a platform device.

No functional changes are intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240223195113.880121-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/kempld-core.c

index e207a62d6577542aaa74b85624c8bb73e1eacb5f..c3bc61dcd098f7e6b81050b34f02a67a2f0bdd77 100644 (file)
@@ -109,7 +109,7 @@ static int kempld_register_cells_generic(struct kempld_device_data *pld)
        if (pld->feature_mask & KEMPLD_FEATURE_MASK_UART)
                devs[i++].name = kempld_dev_names[KEMPLD_UART];
 
-       return mfd_add_devices(pld->dev, -1, devs, i, NULL, 0, NULL);
+       return mfd_add_devices(pld->dev, PLATFORM_DEVID_NONE, devs, i, NULL, 0, NULL);
 }
 
 static struct resource kempld_ioresource = {