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 587/606] backlight: arcxcnn: 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/video/backlight/arcxcnn_bl.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/video/backlight/arcxcnn_bl.c b/drivers/video/backlight/arcxcnn_bl.c
    index 060c0eef6a52..555b036643fb 100644
    --- a/drivers/video/backlight/arcxcnn_bl.c
    +++ b/drivers/video/backlight/arcxcnn_bl.c
    @@ -241,7 +241,7 @@ static void arcxcnn_parse_dt(struct arcxcnn *lp)
    }
    }

    -static int arcxcnn_probe(struct i2c_client *cl, const struct i2c_device_id *id)
    +static int arcxcnn_probe(struct i2c_client *cl)
    {
    struct arcxcnn *lp;
    int ret;
    @@ -395,7 +395,7 @@ static struct i2c_driver arcxcnn_driver = {
    .name = "arcxcnn_bl",
    .of_match_table = of_match_ptr(arcxcnn_dt_ids),
    },
    - .probe = arcxcnn_probe,
    + .probe_new = arcxcnn_probe,
    .remove = arcxcnn_remove,
    .id_table = arcxcnn_ids,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 00:42    [W:4.133 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site