Skip to content

Commit d24182b

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
usb: typec: ucsi/ucsi_ccg: 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> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20221118224540.619276-584-uwe@kleine-koenig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 05b2e34 commit d24182b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/usb/typec/ucsi/ucsi_ccg.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,8 +1338,7 @@ static struct attribute *ucsi_ccg_attrs[] = {
13381338
};
13391339
ATTRIBUTE_GROUPS(ucsi_ccg);
13401340

1341-
static int ucsi_ccg_probe(struct i2c_client *client,
1342-
const struct i2c_device_id *id)
1341+
static int ucsi_ccg_probe(struct i2c_client *client)
13431342
{
13441343
struct device *dev = &client->dev;
13451344
struct ucsi_ccg *uc;
@@ -1482,7 +1481,7 @@ static struct i2c_driver ucsi_ccg_driver = {
14821481
.dev_groups = ucsi_ccg_groups,
14831482
.acpi_match_table = amd_i2c_ucsi_match,
14841483
},
1485-
.probe = ucsi_ccg_probe,
1484+
.probe_new = ucsi_ccg_probe,
14861485
.remove = ucsi_ccg_remove,
14871486
.id_table = ucsi_ccg_device_id,
14881487
};

0 commit comments

Comments
 (0)