Commit 38ba0bb2 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Pavel Machek

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarVincent Knecht <vincent.knecht@mailoo.org>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent e1af5c81
...@@ -494,8 +494,7 @@ static inline int is31fl3196_db_to_gain(u32 dezibel) ...@@ -494,8 +494,7 @@ static inline int is31fl3196_db_to_gain(u32 dezibel)
return dezibel / IS31FL3196_AUDIO_GAIN_DB_STEP; return dezibel / IS31FL3196_AUDIO_GAIN_DB_STEP;
} }
static int is31fl319x_probe(struct i2c_client *client, static int is31fl319x_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct is31fl319x_chip *is31; struct is31fl319x_chip *is31;
struct device *dev = &client->dev; struct device *dev = &client->dev;
...@@ -597,7 +596,7 @@ static struct i2c_driver is31fl319x_driver = { ...@@ -597,7 +596,7 @@ static struct i2c_driver is31fl319x_driver = {
.name = "leds-is31fl319x", .name = "leds-is31fl319x",
.of_match_table = of_is31fl319x_match, .of_match_table = of_is31fl319x_match,
}, },
.probe = is31fl319x_probe, .probe_new = is31fl319x_probe,
.id_table = is31fl319x_id, .id_table = is31fl319x_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment