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 211/606] Input: cma3000_d0x_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/misc/cma3000_d0x_i2c.c | 5 ++---
    1 file changed, 2 insertions(+), 3 deletions(-)

    diff --git a/drivers/input/misc/cma3000_d0x_i2c.c b/drivers/input/misc/cma3000_d0x_i2c.c
    index 3b23210c46b7..75442c1230b1 100644
    --- a/drivers/input/misc/cma3000_d0x_i2c.c
    +++ b/drivers/input/misc/cma3000_d0x_i2c.c
    @@ -44,8 +44,7 @@ static const struct cma3000_bus_ops cma3000_i2c_bops = {
    .write = cma3000_i2c_set,
    };

    -static int cma3000_i2c_probe(struct i2c_client *client,
    - const struct i2c_device_id *id)
    +static int cma3000_i2c_probe(struct i2c_client *client)
    {
    struct cma3000_accl_data *data;

    @@ -100,7 +99,7 @@ static const struct i2c_device_id cma3000_i2c_id[] = {
    MODULE_DEVICE_TABLE(i2c, cma3000_i2c_id);

    static struct i2c_driver cma3000_i2c_driver = {
    - .probe = cma3000_i2c_probe,
    + .probe_new = cma3000_i2c_probe,
    .remove = cma3000_i2c_remove,
    .id_table = cma3000_i2c_id,
    .driver = {
    --
    2.38.1
    \
     
     \ /
      Last update: 2022-11-19 01:13    [W:2.614 / U:0.812 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site