Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: kempld: 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: 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>

authored by

Andy Shevchenko and committed by
Lee Jones
f197c75f f0336cc4

+1 -1
+1 -1
drivers/mfd/kempld-core.c
··· 109 109 if (pld->feature_mask & KEMPLD_FEATURE_MASK_UART) 110 110 devs[i++].name = kempld_dev_names[KEMPLD_UART]; 111 111 112 - return mfd_add_devices(pld->dev, -1, devs, i, NULL, 0, NULL); 112 + return mfd_add_devices(pld->dev, PLATFORM_DEVID_NONE, devs, i, NULL, 0, NULL); 113 113 } 114 114 115 115 static struct resource kempld_ioresource = {