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 575/606] usb: isp1301-omap: 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/usb/phy/phy-isp1301-omap.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/usb/phy/phy-isp1301-omap.c b/drivers/usb/phy/phy-isp1301-omap.c
    index e5d3f206097c..931610b76f3d 100644
    --- a/drivers/usb/phy/phy-isp1301-omap.c
    +++ b/drivers/usb/phy/phy-isp1301-omap.c
    @@ -1471,7 +1471,7 @@ isp1301_start_hnp(struct usb_otg *otg)
    /*-------------------------------------------------------------------------*/

    static int
    -isp1301_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
    +isp1301_probe(struct i2c_client *i2c)
    {
    int status;
    struct isp1301 *isp;
    @@ -1616,7 +1616,7 @@ static struct i2c_driver isp1301_driver = {
    .driver = {
    .name = "isp1301_omap",
    },
    - .probe = isp1301_probe,
    + .probe_new = isp1301_probe,
    .remove = isp1301_remove,
    .id_table = isp1301_id,
    };
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 01:36    [W:4.045 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site