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

misc: eeprom/idt_89hpesx: 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-489-uwe@kleine-koenig.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 db687ce7
...@@ -1366,7 +1366,7 @@ static void idt_remove_dbgfs_files(struct idt_89hpesx_dev *pdev) ...@@ -1366,7 +1366,7 @@ static void idt_remove_dbgfs_files(struct idt_89hpesx_dev *pdev)
/* /*
* idt_probe() - IDT 89HPESx driver probe() callback method * idt_probe() - IDT 89HPESx driver probe() callback method
*/ */
static int idt_probe(struct i2c_client *client, const struct i2c_device_id *id) static int idt_probe(struct i2c_client *client)
{ {
struct idt_89hpesx_dev *pdev; struct idt_89hpesx_dev *pdev;
int ret; int ret;
...@@ -1556,7 +1556,7 @@ static struct i2c_driver idt_driver = { ...@@ -1556,7 +1556,7 @@ static struct i2c_driver idt_driver = {
.name = IDT_NAME, .name = IDT_NAME,
.of_match_table = idt_of_match, .of_match_table = idt_of_match,
}, },
.probe = idt_probe, .probe_new = idt_probe,
.remove = idt_remove, .remove = idt_remove,
.id_table = idt_ids, .id_table = idt_ids,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册