mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
ASoC: codecs: src4xxx-i2c: 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Matt Flax <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
|
||||
#include "src4xxx.h"
|
||||
|
||||
static int src4xxx_i2c_probe(struct i2c_client *i2c,
|
||||
const struct i2c_device_id *id)
|
||||
static int src4xxx_i2c_probe(struct i2c_client *i2c)
|
||||
{
|
||||
return src4xxx_probe(&i2c->dev,
|
||||
devm_regmap_init_i2c(i2c, &src4xxx_regmap_config), NULL);
|
||||
@@ -37,7 +36,7 @@ static struct i2c_driver src4xxx_i2c_driver = {
|
||||
.name = "src4xxx",
|
||||
.of_match_table = of_match_ptr(src4xxx_of_match),
|
||||
},
|
||||
.probe = src4xxx_i2c_probe,
|
||||
.probe_new = src4xxx_i2c_probe,
|
||||
.id_table = src4xxx_i2c_ids,
|
||||
};
|
||||
module_i2c_driver(src4xxx_i2c_driver);
|
||||
|
||||
Reference in New Issue
Block a user