diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-19 01:43:19 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-12-07 16:27:25 +0300 |
commit | e6a6b1d6bb06e8fda4d9f5a6a9c61291eb504a86 (patch) | |
tree | 8fb098264f65f2353aaa69e50dfc878d084de8c8 /drivers/mfd/ti-lmu.c | |
parent | d28fa288ea506812ef73980b8c3dc9c39ec8c18b (diff) | |
download | linux-e6a6b1d6bb06e8fda4d9f5a6a9c61291eb504a86.tar.xz |
mfd: ti-lmu: Convert to i2c's .probe_new()
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-466-uwe@kleine-koenig.org
Diffstat (limited to 'drivers/mfd/ti-lmu.c')
-rw-r--r-- | drivers/mfd/ti-lmu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/ti-lmu.c b/drivers/mfd/ti-lmu.c index fd6e8c417baa..9921320be255 100644 --- a/drivers/mfd/ti-lmu.c +++ b/drivers/mfd/ti-lmu.c @@ -133,8 +133,9 @@ TI_LMU_DATA(lm3633, LM3633_MAX_REG); TI_LMU_DATA(lm3695, LM3695_MAX_REG); TI_LMU_DATA(lm36274, LM36274_MAX_REG); -static int ti_lmu_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int ti_lmu_probe(struct i2c_client *cl) { + const struct i2c_device_id *id = i2c_client_get_device_id(cl); struct device *dev = &cl->dev; const struct ti_lmu_data *data; struct regmap_config regmap_cfg; @@ -216,7 +217,7 @@ static const struct i2c_device_id ti_lmu_ids[] = { MODULE_DEVICE_TABLE(i2c, ti_lmu_ids); static struct i2c_driver ti_lmu_driver = { - .probe = ti_lmu_probe, + .probe_new = ti_lmu_probe, .driver = { .name = "ti-lmu", .of_match_table = ti_lmu_of_match, |