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

    diff --git a/drivers/mfd/aat2870-core.c b/drivers/mfd/aat2870-core.c
    index 8a3967c3f026..f253da5b246b 100644
    --- a/drivers/mfd/aat2870-core.c
    +++ b/drivers/mfd/aat2870-core.c
    @@ -332,8 +332,7 @@ static inline void aat2870_init_debugfs(struct aat2870_data *aat2870)
    }
    #endif /* CONFIG_DEBUG_FS */

    -static int aat2870_i2c_probe(struct i2c_client *client,
    - const struct i2c_device_id *id)
    +static int aat2870_i2c_probe(struct i2c_client *client)
    {
    struct aat2870_platform_data *pdata = dev_get_platdata(&client->dev);
    struct aat2870_data *aat2870;
    @@ -452,7 +451,7 @@ static struct i2c_driver aat2870_i2c_driver = {
    .pm = pm_sleep_ptr(&aat2870_pm_ops),
    .suppress_bind_attrs = true,
    },
    - .probe = aat2870_i2c_probe,
    + .probe_new = aat2870_i2c_probe,
    .id_table = aat2870_i2c_id_table,
    };

    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 00:36    [W:2.628 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site