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 304/606] media: dvb-frontends/dvb-pll: Convert to i2c's .probe_new()
    Date
    From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

    .probe_new() doesn't get the i2c_device_id * parameter, so determine
    that explicitly in the probe function.

    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    ---
    drivers/media/dvb-frontends/dvb-pll.c | 5 +++--
    1 file changed, 3 insertions(+), 2 deletions(-)

    diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c
    index baf2a378e565..e35e00db7dbb 100644
    --- a/drivers/media/dvb-frontends/dvb-pll.c
    +++ b/drivers/media/dvb-frontends/dvb-pll.c
    @@ -870,8 +870,9 @@ EXPORT_SYMBOL(dvb_pll_attach);


    static int
    -dvb_pll_probe(struct i2c_client *client, const struct i2c_device_id *id)
    +dvb_pll_probe(struct i2c_client *client)
    {
    + const struct i2c_device_id *id = i2c_client_get_device_id(client);
    struct dvb_pll_config *cfg;
    struct dvb_frontend *fe;
    unsigned int desc_id;
    @@ -941,7 +942,7 @@ static struct i2c_driver dvb_pll_driver = {
    .driver = {
    .name = "dvb_pll",
    },
    - .probe = dvb_pll_probe,
    + .probe_new = dvb_pll_probe,
    .remove = dvb_pll_remove,
    .id_table = dvb_pll_id,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 01:44    [W:4.031 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site