Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: cs42l84: remove incorrect of_match_ptr()

The use of of_match_ptr() is incorrect here and just causes
a warning:

sound/soc/codecs/cs42l84.c:1084:34: error: unused variable 'cs42l84_of_match' [-Werror,-Wunused-const-variable]

Fixes: 250304a0fb34 ("ASoC: cs42l84: Add new codec driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20241029092404.3874040-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Arnd Bergmann and committed by
Mark Brown
0d4f74fe d3119688

+1 -1
+1 -1
sound/soc/codecs/cs42l84.c
··· 1096 1096 static struct i2c_driver cs42l84_i2c_driver = { 1097 1097 .driver = { 1098 1098 .name = "cs42l84", 1099 - .of_match_table = of_match_ptr(cs42l84_of_match), 1099 + .of_match_table = cs42l84_of_match, 1100 1100 }, 1101 1101 .id_table = cs42l84_id, 1102 1102 .probe = cs42l84_i2c_probe,