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 265/606] Input: wdt87xx_i2c - 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/input/touchscreen/wdt87xx_i2c.c | 5 ++---
    1 file changed, 2 insertions(+), 3 deletions(-)

    diff --git a/drivers/input/touchscreen/wdt87xx_i2c.c b/drivers/input/touchscreen/wdt87xx_i2c.c
    index 166edeb77776..3f87db5cdca4 100644
    --- a/drivers/input/touchscreen/wdt87xx_i2c.c
    +++ b/drivers/input/touchscreen/wdt87xx_i2c.c
    @@ -1064,8 +1064,7 @@ static int wdt87xx_ts_create_input_device(struct wdt87xx_data *wdt)
    return 0;
    }

    -static int wdt87xx_ts_probe(struct i2c_client *client,
    - const struct i2c_device_id *id)
    +static int wdt87xx_ts_probe(struct i2c_client *client)
    {
    struct wdt87xx_data *wdt;
    int error;
    @@ -1170,7 +1169,7 @@ static const struct acpi_device_id wdt87xx_acpi_id[] = {
    MODULE_DEVICE_TABLE(acpi, wdt87xx_acpi_id);

    static struct i2c_driver wdt87xx_driver = {
    - .probe = wdt87xx_ts_probe,
    + .probe_new = wdt87xx_ts_probe,
    .id_table = wdt87xx_dev_id,
    .driver = {
    .name = WDT87XX_NAME,
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 00:59    [W:2.154 / U:0.340 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site