projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42a2b67
)
ASoC: tfa9879: switch to using .probe_new
author
Peter Rosin
<
[email protected]
>
Thu, 12 Apr 2018 21:14:37 +0000
(23:14 +0200)
committer
Mark Brown
<
[email protected]
>
Mon, 16 Apr 2018 10:53:49 +0000
(11:53 +0100)
Use the new probe style for i2c drivers.
Signed-off-by: Peter Rosin <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/tfa9879.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tfa9879.c
b/sound/soc/codecs/tfa9879.c
index c30e0efdbe39d85244fb84ce7607781455909ab8..4ed020262a275bc48df4ae1963a3a3680b0f91e8 100644
(file)
--- a/
sound/soc/codecs/tfa9879.c
+++ b/
sound/soc/codecs/tfa9879.c
@@
-277,8
+277,7
@@
static struct snd_soc_dai_driver tfa9879_dai = {
.ops = &tfa9879_dai_ops,
};
-static int tfa9879_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int tfa9879_i2c_probe(struct i2c_client *i2c)
{
struct tfa9879_priv *tfa9879;
int i;
@@
-319,7
+318,7
@@
static struct i2c_driver tfa9879_i2c_driver = {
.name = "tfa9879",
.of_match_table = tfa9879_of_match,
},
- .probe = tfa9879_i2c_probe,
+ .probe
_new
= tfa9879_i2c_probe,
.id_table = tfa9879_i2c_id,
};