Skip to content

Commit cef9efd

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
leds: tlc591xx: 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-288-uwe@kleine-koenig.org
1 parent e916e05 commit cef9efd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/leds/leds-tlc591xx.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ static const struct of_device_id of_tlc591xx_leds_match[] = {
145145
MODULE_DEVICE_TABLE(of, of_tlc591xx_leds_match);
146146

147147
static int
148-
tlc591xx_probe(struct i2c_client *client,
149-
const struct i2c_device_id *id)
148+
tlc591xx_probe(struct i2c_client *client)
150149
{
151150
struct device_node *np, *child;
152151
struct device *dev = &client->dev;
@@ -231,7 +230,7 @@ static struct i2c_driver tlc591xx_driver = {
231230
.name = "tlc591xx",
232231
.of_match_table = of_match_ptr(of_tlc591xx_leds_match),
233232
},
234-
.probe = tlc591xx_probe,
233+
.probe_new = tlc591xx_probe,
235234
.id_table = tlc591xx_id,
236235
};
237236

0 commit comments

Comments
 (0)