Skip to content

Commit 4934630

Browse files
Uwe Kleine-Königlag-linaro
authored andcommitted
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
1 parent cef9efd commit 4934630

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/leds/leds-turris-omnia.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ static struct attribute *omnia_led_controller_attrs[] = {
201201
};
202202
ATTRIBUTE_GROUPS(omnia_led_controller);
203203

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)
206205
{
207206
struct device *dev = &client->dev;
208207
struct device_node *np = dev_of_node(dev), *child;
@@ -272,7 +271,7 @@ static const struct i2c_device_id omnia_id[] = {
272271
MODULE_DEVICE_TABLE(i2c, omnia_id);
273272

274273
static struct i2c_driver omnia_leds_driver = {
275-
.probe = omnia_leds_probe,
274+
.probe_new = omnia_leds_probe,
276275
.remove = omnia_leds_remove,
277276
.id_table = omnia_id,
278277
.driver = {

0 commit comments

Comments
 (0)