Skip to content

Commit ed56fa6

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: pca9450-regulator: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <[email protected]> Acked-for-MFD-by: Lee Jones <[email protected]> Acked-for-Backlight-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c20c367 commit ed56fa6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/pca9450-regulator.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,7 @@ static irqreturn_t pca9450_irq_handler(int irq, void *data)
701701
return IRQ_HANDLED;
702702
}
703703

704-
static int pca9450_i2c_probe(struct i2c_client *i2c,
705-
const struct i2c_device_id *id)
704+
static int pca9450_i2c_probe(struct i2c_client *i2c)
706705
{
707706
enum pca9450_chip_type type = (unsigned int)(uintptr_t)
708707
of_device_get_match_data(&i2c->dev);
@@ -875,7 +874,7 @@ static struct i2c_driver pca9450_i2c_driver = {
875874
.name = "nxp-pca9450",
876875
.of_match_table = pca9450_of_match,
877876
},
878-
.probe = pca9450_i2c_probe,
877+
.probe_new = pca9450_i2c_probe,
879878
};
880879

881880
module_i2c_driver(pca9450_i2c_driver);

0 commit comments

Comments
 (0)