Skip to content

Commit 8ac813f

Browse files
Uwe Kleine-KönigBartosz Golaszewski
authored andcommitted
gpio: max732x: 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 06fa87f commit 8ac813f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpio/gpio-max732x.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ static struct max732x_platform_data *of_gpio_max732x(struct device *dev)
608608
return pdata;
609609
}
610610

611-
static int max732x_probe(struct i2c_client *client,
612-
const struct i2c_device_id *id)
611+
static int max732x_probe(struct i2c_client *client)
613612
{
613+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
614614
struct max732x_platform_data *pdata;
615615
struct device_node *node;
616616
struct max732x_chip *chip;
@@ -707,7 +707,7 @@ static struct i2c_driver max732x_driver = {
707707
.name = "max732x",
708708
.of_match_table = of_match_ptr(max732x_of_table),
709709
},
710-
.probe = max732x_probe,
710+
.probe_new = max732x_probe,
711711
.id_table = max732x_id,
712712
};
713713

0 commit comments

Comments
 (0)