[PATCH 14/42] mfd: lp3943: use PLATFORM_DEVID_NONE

From: Krzysztof Kozlowski
Date: Mon Sep 21 2020 - 16:51:53 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/lp3943.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mfd/lp3943.c b/drivers/mfd/lp3943.c
index 13cb89be3d66..3e5d7336f59b 100644
--- a/drivers/mfd/lp3943.c
+++ b/drivers/mfd/lp3943.c
@@ -120,9 +120,8 @@ static int lp3943_probe(struct i2c_client *cl, const struct i2c_device_id *id)
lp3943->mux_cfg = lp3943_mux_cfg;
i2c_set_clientdata(cl, lp3943);

- return devm_mfd_add_devices(dev, -1, lp3943_devs,
- ARRAY_SIZE(lp3943_devs),
- NULL, 0, NULL);
+ return devm_mfd_add_devices(dev, PLATFORM_DEVID_NONE, lp3943_devs,
+ ARRAY_SIZE(lp3943_devs), NULL, 0, NULL);
}

static const struct i2c_device_id lp3943_ids[] = {
--
2.17.1