Skip to content

Commit deae576

Browse files
sredtor
authored andcommitted
Input: exc3000 - switch to i2c's probe_new API
Switch to the "new" I2C probe API. Signed-off-by: Sebastian Reichel <[email protected]> Reviewed-by: Enric Balletbo i Serra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 05b8465 commit deae576

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/exc3000.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ static irqreturn_t exc3000_interrupt(int irq, void *dev_id)
145145
return IRQ_HANDLED;
146146
}
147147

148-
static int exc3000_probe(struct i2c_client *client,
149-
const struct i2c_device_id *id)
148+
static int exc3000_probe(struct i2c_client *client)
150149
{
151150
struct exc3000_data *data;
152151
struct input_dev *input;
@@ -210,7 +209,7 @@ static struct i2c_driver exc3000_driver = {
210209
.of_match_table = of_match_ptr(exc3000_of_match),
211210
},
212211
.id_table = exc3000_id,
213-
.probe = exc3000_probe,
212+
.probe_new = exc3000_probe,
214213
};
215214

216215
module_i2c_driver(exc3000_driver);

0 commit comments

Comments
 (0)