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

    diff --git a/drivers/mfd/tps6105x.c b/drivers/mfd/tps6105x.c
    index b360568ea675..a66cb911998d 100644
    --- a/drivers/mfd/tps6105x.c
    +++ b/drivers/mfd/tps6105x.c
    @@ -117,8 +117,7 @@ static struct tps6105x_platform_data *tps6105x_parse_dt(struct device *dev)
    return pdata;
    }

    -static int tps6105x_probe(struct i2c_client *client,
    - const struct i2c_device_id *id)
    +static int tps6105x_probe(struct i2c_client *client)
    {
    struct tps6105x *tps6105x;
    struct tps6105x_platform_data *pdata;
    @@ -210,7 +209,7 @@ static struct i2c_driver tps6105x_driver = {
    .name = "tps6105x",
    .of_match_table = tps6105x_of_match,
    },
    - .probe = tps6105x_probe,
    + .probe_new = tps6105x_probe,
    .remove = tps6105x_remove,
    .id_table = tps6105x_id,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 01:06    [W:2.063 / U:0.644 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site