提交 9c18dad4 编写于 作者: U Uwe Kleine-König 提交者: Greg Kroah-Hartman

misc: ics932s401: 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.
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-492-uwe@kleine-koenig.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 654700c9
...@@ -89,8 +89,7 @@ struct ics932s401_data { ...@@ -89,8 +89,7 @@ struct ics932s401_data {
u8 regs[NUM_REGS]; u8 regs[NUM_REGS];
}; };
static int ics932s401_probe(struct i2c_client *client, static int ics932s401_probe(struct i2c_client *client);
const struct i2c_device_id *id);
static int ics932s401_detect(struct i2c_client *client, static int ics932s401_detect(struct i2c_client *client,
struct i2c_board_info *info); struct i2c_board_info *info);
static void ics932s401_remove(struct i2c_client *client); static void ics932s401_remove(struct i2c_client *client);
...@@ -106,7 +105,7 @@ static struct i2c_driver ics932s401_driver = { ...@@ -106,7 +105,7 @@ static struct i2c_driver ics932s401_driver = {
.driver = { .driver = {
.name = "ics932s401", .name = "ics932s401",
}, },
.probe = ics932s401_probe, .probe_new = ics932s401_probe,
.remove = ics932s401_remove, .remove = ics932s401_remove,
.id_table = ics932s401_id, .id_table = ics932s401_id,
.detect = ics932s401_detect, .detect = ics932s401_detect,
...@@ -429,8 +428,7 @@ static int ics932s401_detect(struct i2c_client *client, ...@@ -429,8 +428,7 @@ static int ics932s401_detect(struct i2c_client *client,
return 0; return 0;
} }
static int ics932s401_probe(struct i2c_client *client, static int ics932s401_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct ics932s401_data *data; struct ics932s401_data *data;
int err; int err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册