misc: ics932s401: Convert to i2c's .probe_new()
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> Link: https://lore.kernel.org/r/20221118224540.619276-492-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
654700c9fc
commit
9c18dad44d
@ -89,8 +89,7 @@ struct ics932s401_data {
|
||||
u8 regs[NUM_REGS];
|
||||
};
|
||||
|
||||
static int ics932s401_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id);
|
||||
static int ics932s401_probe(struct i2c_client *client);
|
||||
static int ics932s401_detect(struct i2c_client *client,
|
||||
struct i2c_board_info *info);
|
||||
static void ics932s401_remove(struct i2c_client *client);
|
||||
@ -106,7 +105,7 @@ static struct i2c_driver ics932s401_driver = {
|
||||
.driver = {
|
||||
.name = "ics932s401",
|
||||
},
|
||||
.probe = ics932s401_probe,
|
||||
.probe_new = ics932s401_probe,
|
||||
.remove = ics932s401_remove,
|
||||
.id_table = ics932s401_id,
|
||||
.detect = ics932s401_detect,
|
||||
@ -429,8 +428,7 @@ static int ics932s401_detect(struct i2c_client *client,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ics932s401_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int ics932s401_probe(struct i2c_client *client)
|
||||
{
|
||||
struct ics932s401_data *data;
|
||||
int err;
|
||||
|
Loading…
Reference in New Issue
Block a user