Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Uwe Kleine-König and committed by
Lee Jones
cef9efd5 e916e052

+2 -3
+2 -3
drivers/leds/leds-tlc591xx.c
··· 145 145 MODULE_DEVICE_TABLE(of, of_tlc591xx_leds_match); 146 146 147 147 static int 148 - tlc591xx_probe(struct i2c_client *client, 149 - const struct i2c_device_id *id) 148 + tlc591xx_probe(struct i2c_client *client) 150 149 { 151 150 struct device_node *np, *child; 152 151 struct device *dev = &client->dev; ··· 230 231 .name = "tlc591xx", 231 232 .of_match_table = of_match_ptr(of_tlc591xx_leds_match), 232 233 }, 233 - .probe = tlc591xx_probe, 234 + .probe_new = tlc591xx_probe, 234 235 .id_table = tlc591xx_id, 235 236 }; 236 237