[RESEND PATCH 27/42] mfd: sec: use PLATFORM_DEVID_NONE
From: Krzysztof Kozlowski
Date: Wed Oct 28 2020 - 18:33:03 EST
Use PLATFORM_DEVID_NONE define instead of "-1" value because:
- it brings some meaning,
- it might point attention why auto device ID was not used.
Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
---
drivers/mfd/sec-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 95473ff9bb4b..7bfab43b455e 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -457,8 +457,8 @@ static int sec_pmic_probe(struct i2c_client *i2c,
sec_pmic->device_type);
return -ENODEV;
}
- ret = devm_mfd_add_devices(sec_pmic->dev, -1, sec_devs, num_sec_devs,
- NULL, 0, NULL);
+ ret = devm_mfd_add_devices(sec_pmic->dev, PLATFORM_DEVID_NONE,
+ sec_devs, num_sec_devs, NULL, 0, NULL);
if (ret)
return ret;
--
2.25.1