Skip to content

Commit 38ba0bb

Browse files
andy-shevpavelmachek
authored andcommitted
leds: is31fl319x: use simple i2c probe function
The i2c probe functions here don't use the id information provided in their second argument, so the single-parameter i2c probe function ("probe_new") can be used instead. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
1 parent e1af5c8 commit 38ba0bb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/leds/leds-is31fl319x.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ static inline int is31fl3196_db_to_gain(u32 dezibel)
494494
return dezibel / IS31FL3196_AUDIO_GAIN_DB_STEP;
495495
}
496496

497-
static int is31fl319x_probe(struct i2c_client *client,
498-
const struct i2c_device_id *id)
497+
static int is31fl319x_probe(struct i2c_client *client)
499498
{
500499
struct is31fl319x_chip *is31;
501500
struct device *dev = &client->dev;
@@ -597,7 +596,7 @@ static struct i2c_driver is31fl319x_driver = {
597596
.name = "leds-is31fl319x",
598597
.of_match_table = of_is31fl319x_match,
599598
},
600-
.probe = is31fl319x_probe,
599+
.probe_new = is31fl319x_probe,
601600
.id_table = is31fl319x_id,
602601
};
603602

0 commit comments

Comments
 (0)