Skip to content

Commit 8fa22f4

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: pca9685: 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. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent a08b318 commit 8fa22f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pwm/pwm-pca9685.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,7 @@ static const struct regmap_config pca9685_regmap_i2c_config = {
515515
.cache_type = REGCACHE_NONE,
516516
};
517517

518-
static int pca9685_pwm_probe(struct i2c_client *client,
519-
const struct i2c_device_id *id)
518+
static int pca9685_pwm_probe(struct i2c_client *client)
520519
{
521520
struct pca9685 *pca;
522521
unsigned int reg;
@@ -666,7 +665,7 @@ static struct i2c_driver pca9685_i2c_driver = {
666665
.of_match_table = of_match_ptr(pca9685_dt_ids),
667666
.pm = &pca9685_pwm_pm,
668667
},
669-
.probe = pca9685_pwm_probe,
668+
.probe_new = pca9685_pwm_probe,
670669
.remove = pca9685_pwm_remove,
671670
.id_table = pca9685_id,
672671
};

0 commit comments

Comments
 (0)