Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: adnp: use simple i2c probe function

The i2c probe functions here don't use the id information provided in
their second argument, so the single-parameter i2c probe function
("probe_new") can be used instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
a2a15e12 d274f02e

+2 -3
+2 -3
drivers/gpio/gpio-adnp.c
··· 485 485 return 0; 486 486 } 487 487 488 - static int adnp_i2c_probe(struct i2c_client *client, 489 - const struct i2c_device_id *id) 488 + static int adnp_i2c_probe(struct i2c_client *client) 490 489 { 491 490 struct device_node *np = client->dev.of_node; 492 491 struct adnp *adnp; ··· 534 535 .name = "gpio-adnp", 535 536 .of_match_table = adnp_of_match, 536 537 }, 537 - .probe = adnp_i2c_probe, 538 + .probe_new = adnp_i2c_probe, 538 539 .id_table = adnp_i2c_id, 539 540 }; 540 541 module_i2c_driver(adnp_i2c_driver);