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 046/606] i2c: smbus: 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/i2c/i2c-smbus.c | 5 ++---
    1 file changed, 2 insertions(+), 3 deletions(-)

    diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c
    index 07c92c8495a3..f4c74b9135b3 100644
    --- a/drivers/i2c/i2c-smbus.c
    +++ b/drivers/i2c/i2c-smbus.c
    @@ -112,8 +112,7 @@ static void smbalert_work(struct work_struct *work)
    }

    /* Setup SMBALERT# infrastructure */
    -static int smbalert_probe(struct i2c_client *ara,
    - const struct i2c_device_id *id)
    +static int smbalert_probe(struct i2c_client *ara)
    {
    struct i2c_smbus_alert_setup *setup = dev_get_platdata(&ara->dev);
    struct i2c_smbus_alert *alert;
    @@ -170,7 +169,7 @@ static struct i2c_driver smbalert_driver = {
    .driver = {
    .name = "smbus_alert",
    },
    - .probe = smbalert_probe,
    + .probe_new = smbalert_probe,
    .remove = smbalert_remove,
    .id_table = smbalert_ids,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-18 23:48    [W:2.854 / U:0.340 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site