Skip to content

Commit e916e05

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
leds: tca6507: 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> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20221118224540.619276-287-uwe@kleine-koenig.org
1 parent 2c6aaf8 commit e916e05

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/leds/leds-tca6507.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,7 @@ static const struct of_device_id __maybe_unused of_tca6507_leds_match[] = {
728728
};
729729
MODULE_DEVICE_TABLE(of, of_tca6507_leds_match);
730730

731-
static int tca6507_probe(struct i2c_client *client,
732-
const struct i2c_device_id *id)
731+
static int tca6507_probe(struct i2c_client *client)
733732
{
734733
struct device *dev = &client->dev;
735734
struct i2c_adapter *adapter;
@@ -809,7 +808,7 @@ static struct i2c_driver tca6507_driver = {
809808
.name = "leds-tca6507",
810809
.of_match_table = of_match_ptr(of_tca6507_leds_match),
811810
},
812-
.probe = tca6507_probe,
811+
.probe_new = tca6507_probe,
813812
.remove = tca6507_remove,
814813
.id_table = tca6507_id,
815814
};

0 commit comments

Comments
 (0)