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 408/606] media: tuners/tda18212: 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/media/tuners/tda18212.c | 5 ++---
    1 file changed, 2 insertions(+), 3 deletions(-)

    diff --git a/drivers/media/tuners/tda18212.c b/drivers/media/tuners/tda18212.c
    index eb97711c9c68..5fdf05a97415 100644
    --- a/drivers/media/tuners/tda18212.c
    +++ b/drivers/media/tuners/tda18212.c
    @@ -173,8 +173,7 @@ static const struct dvb_tuner_ops tda18212_tuner_ops = {
    .get_if_frequency = tda18212_get_if_frequency,
    };

    -static int tda18212_probe(struct i2c_client *client,
    - const struct i2c_device_id *id)
    +static int tda18212_probe(struct i2c_client *client)
    {
    struct tda18212_config *cfg = client->dev.platform_data;
    struct dvb_frontend *fe = cfg->fe;
    @@ -264,7 +263,7 @@ static struct i2c_driver tda18212_driver = {
    .driver = {
    .name = "tda18212",
    },
    - .probe = tda18212_probe,
    + .probe_new = tda18212_probe,
    .remove = tda18212_remove,
    .id_table = tda18212_id,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 00:36    [W:4.026 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site