lkml.org 
[lkml]   [2022]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 488/606] misc: eeprom/idt_89hpesx: Convert to i2c's .probe_new()
    Date
    From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

    The probe function doesn't make use of the i2c_device_id * parameter so it
    can be trivially converted.

    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    ---
    drivers/misc/eeprom/idt_89hpesx.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/misc/eeprom/idt_89hpesx.c b/drivers/misc/eeprom/idt_89hpesx.c
    index bb3ed352b95f..4e07ee9cb500 100644
    --- a/drivers/misc/eeprom/idt_89hpesx.c
    +++ b/drivers/misc/eeprom/idt_89hpesx.c
    @@ -1366,7 +1366,7 @@ static void idt_remove_dbgfs_files(struct idt_89hpesx_dev *pdev)
    /*
    * 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;
    int ret;
    @@ -1556,7 +1556,7 @@ static struct i2c_driver idt_driver = {
    .name = IDT_NAME,
    .of_match_table = idt_of_match,
    },
    - .probe = idt_probe,
    + .probe_new = idt_probe,
    .remove = idt_remove,
    .id_table = idt_ids,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 00:56    [W:2.606 / U:0.456 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site