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 520/606] power: supply: bq25890: 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/power/supply/bq25890_charger.c | 5 ++---
    1 file changed, 2 insertions(+), 3 deletions(-)

    diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c
    index f0362dcb935e..bfdd2213ba69 100644
    --- a/drivers/power/supply/bq25890_charger.c
    +++ b/drivers/power/supply/bq25890_charger.c
    @@ -1315,8 +1315,7 @@ static int bq25890_fw_probe(struct bq25890_device *bq)
    return 0;
    }

    -static int bq25890_probe(struct i2c_client *client,
    - const struct i2c_device_id *id)
    +static int bq25890_probe(struct i2c_client *client)
    {
    struct device *dev = &client->dev;
    struct bq25890_device *bq;
    @@ -1515,7 +1514,7 @@ static struct i2c_driver bq25890_driver = {
    .acpi_match_table = ACPI_PTR(bq25890_acpi_match),
    .pm = &bq25890_pm,
    },
    - .probe = bq25890_probe,
    + .probe_new = bq25890_probe,
    .remove = bq25890_remove,
    .shutdown = bq25890_shutdown,
    .id_table = bq25890_i2c_ids,
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 00:48    [W:3.337 / U:0.632 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site