projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a639a7
)
ASoC: sma1303: Convert to i2c's .probe_new()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Tue, 31 Jan 2023 08:21:07 +0000
(09:21 +0100)
committer
Mark Brown
<broonie@kernel.org>
Tue, 31 Jan 2023 11:05:17 +0000
(11:05 +0000)
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>
Link:
https://lore.kernel.org/r/20230131082107.174739-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sma1303.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sma1303.c
b/sound/soc/codecs/sma1303.c
index 3d8e3900f5c39d168647c2ca6b0698f97e5041db..fbedba574ff4a5001ffd17a276e51fddec4423c0 100644
(file)
--- a/
sound/soc/codecs/sma1303.c
+++ b/
sound/soc/codecs/sma1303.c
@@
-1597,8
+1597,7
@@
static struct attribute_group sma1303_attr_group = {
.attrs = sma1303_attr,
};
-static int sma1303_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int sma1303_i2c_probe(struct i2c_client *client)
{
struct sma1303_priv *sma1303;
struct device_node *np = client->dev.of_node;
@@
-1791,7
+1790,7
@@
static struct i2c_driver sma1303_i2c_driver = {
.name = "sma1303",
.of_match_table = sma1303_of_match,
},
- .probe = sma1303_i2c_probe,
+ .probe
_new
= sma1303_i2c_probe,
.remove = sma1303_i2c_remove,
.id_table = sma1303_i2c_id,
};