Skip to content

Commit 2adfc43

Browse files
Uwe Kleine-Königsre
authored andcommitted
power: supply: rt9455: 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 <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent f40ec8b commit 2adfc43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/power/supply/rt9455_charger.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,8 +1581,7 @@ static const struct regmap_config rt9455_regmap_config = {
15811581
.cache_type = REGCACHE_RBTREE,
15821582
};
15831583

1584-
static int rt9455_probe(struct i2c_client *client,
1585-
const struct i2c_device_id *id)
1584+
static int rt9455_probe(struct i2c_client *client)
15861585
{
15871586
struct i2c_adapter *adapter = client->adapter;
15881587
struct device *dev = &client->dev;
@@ -1738,7 +1737,7 @@ MODULE_DEVICE_TABLE(acpi, rt9455_i2c_acpi_match);
17381737
#endif
17391738

17401739
static struct i2c_driver rt9455_driver = {
1741-
.probe = rt9455_probe,
1740+
.probe_new = rt9455_probe,
17421741
.remove = rt9455_remove,
17431742
.id_table = rt9455_i2c_id_table,
17441743
.driver = {

0 commit comments

Comments
 (0)