Skip to content

Commit 1287341

Browse files
Uwe Kleine-KönigBartosz Golaszewski
authored andcommitted
gpio: pca953x: 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 <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 8ac813f commit 1287341

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpio/gpio-pca953x.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,9 +1049,9 @@ static int device_pca957x_init(struct pca953x_chip *chip, u32 invert)
10491049
return ret;
10501050
}
10511051

1052-
static int pca953x_probe(struct i2c_client *client,
1053-
const struct i2c_device_id *i2c_id)
1052+
static int pca953x_probe(struct i2c_client *client)
10541053
{
1054+
const struct i2c_device_id *i2c_id = i2c_client_get_device_id(client);
10551055
struct pca953x_platform_data *pdata;
10561056
struct pca953x_chip *chip;
10571057
int irq_base = 0;
@@ -1375,7 +1375,7 @@ static struct i2c_driver pca953x_driver = {
13751375
.of_match_table = pca953x_dt_ids,
13761376
.acpi_match_table = pca953x_acpi_ids,
13771377
},
1378-
.probe = pca953x_probe,
1378+
.probe_new = pca953x_probe,
13791379
.remove = pca953x_remove,
13801380
.id_table = pca953x_id,
13811381
};

0 commit comments

Comments
 (0)