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

leds: turris-omnia: 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: Marek Behún <kabel@kernel.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-289-uwe@kleine-koenig.org

authored by

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

+2 -3
+2 -3
drivers/leds/leds-turris-omnia.c
··· 201 201 }; 202 202 ATTRIBUTE_GROUPS(omnia_led_controller); 203 203 204 - static int omnia_leds_probe(struct i2c_client *client, 205 - const struct i2c_device_id *id) 204 + static int omnia_leds_probe(struct i2c_client *client) 206 205 { 207 206 struct device *dev = &client->dev; 208 207 struct device_node *np = dev_of_node(dev), *child; ··· 271 272 MODULE_DEVICE_TABLE(i2c, omnia_id); 272 273 273 274 static struct i2c_driver omnia_leds_driver = { 274 - .probe = omnia_leds_probe, 275 + .probe_new = omnia_leds_probe, 275 276 .remove = omnia_leds_remove, 276 277 .id_table = omnia_id, 277 278 .driver = {