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

    diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c
    index 4fb9b9f10799..2fba52e0bd7b 100644
    --- a/drivers/staging/olpc_dcon/olpc_dcon.c
    +++ b/drivers/staging/olpc_dcon/olpc_dcon.c
    @@ -579,7 +579,7 @@ static int dcon_detect(struct i2c_client *client, struct i2c_board_info *info)
    return 0;
    }

    -static int dcon_probe(struct i2c_client *client, const struct i2c_device_id *id)
    +static int dcon_probe(struct i2c_client *client)
    {
    struct dcon_priv *dcon;
    int rc, i, j;
    @@ -779,7 +779,7 @@ static struct i2c_driver dcon_driver = {
    },
    .class = I2C_CLASS_DDC | I2C_CLASS_HWMON,
    .id_table = dcon_idtable,
    - .probe = dcon_probe,
    + .probe_new = dcon_probe,
    .remove = dcon_remove,
    .detect = dcon_detect,
    .address_list = normal_i2c,
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 01:24    [W:2.343 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site