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 436/606] mfd: lp8788: 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/lp8788.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/mfd/lp8788.c b/drivers/mfd/lp8788.c
    index 724a5712b36b..fe809b64147e 100644
    --- a/drivers/mfd/lp8788.c
    +++ b/drivers/mfd/lp8788.c
    @@ -166,7 +166,7 @@ static const struct regmap_config lp8788_regmap_config = {
    .max_register = MAX_LP8788_REGISTERS,
    };

    -static int lp8788_probe(struct i2c_client *cl, const struct i2c_device_id *id)
    +static int lp8788_probe(struct i2c_client *cl)
    {
    struct lp8788 *lp;
    struct lp8788_platform_data *pdata = dev_get_platdata(&cl->dev);
    @@ -225,7 +225,7 @@ static struct i2c_driver lp8788_driver = {
    .driver = {
    .name = "lp8788",
    },
    - .probe = lp8788_probe,
    + .probe_new = lp8788_probe,
    .remove = lp8788_remove,
    .id_table = lp8788_ids,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 00:42    [W:3.600 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site