Commit 1287341c authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Bartosz Golaszewski

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 8ac813f7
...@@ -1049,9 +1049,9 @@ static int device_pca957x_init(struct pca953x_chip *chip, u32 invert) ...@@ -1049,9 +1049,9 @@ static int device_pca957x_init(struct pca953x_chip *chip, u32 invert)
return ret; return ret;
} }
static int pca953x_probe(struct i2c_client *client, static int pca953x_probe(struct i2c_client *client)
const struct i2c_device_id *i2c_id)
{ {
const struct i2c_device_id *i2c_id = i2c_client_get_device_id(client);
struct pca953x_platform_data *pdata; struct pca953x_platform_data *pdata;
struct pca953x_chip *chip; struct pca953x_chip *chip;
int irq_base = 0; int irq_base = 0;
...@@ -1375,7 +1375,7 @@ static struct i2c_driver pca953x_driver = { ...@@ -1375,7 +1375,7 @@ static struct i2c_driver pca953x_driver = {
.of_match_table = pca953x_dt_ids, .of_match_table = pca953x_dt_ids,
.acpi_match_table = pca953x_acpi_ids, .acpi_match_table = pca953x_acpi_ids,
}, },
.probe = pca953x_probe, .probe_new = pca953x_probe,
.remove = pca953x_remove, .remove = pca953x_remove,
.id_table = pca953x_id, .id_table = pca953x_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment