[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241029092404.3874040-1-arnd@kernel.org>
Date: Tue, 29 Oct 2024 09:23:55 +0000
From: Arnd Bergmann <arnd@...nel.org>
To: David Rhodes <david.rhodes@...rus.com>,
Richard Fitzgerald <rf@...nsource.cirrus.com>,
Martin PoviĊĦer <povik+lin@...ebit.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Neal Gompa <neal@...pa.dev>,
James Calligeros <jcalligeros99@...il.com>,
Hector Martin <marcan@...can.st>
Cc: Arnd Bergmann <arnd@...db.de>,
linux-sound@...r.kernel.org,
patches@...nsource.cirrus.com,
asahi@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH] ASoC: cs42l84: remove incorrect of_match_ptr()
From: Arnd Bergmann <arnd@...db.de>
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@...db.de>
---
sound/soc/codecs/cs42l84.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/cs42l84.c b/sound/soc/codecs/cs42l84.c
index 47731cdc0e67..d176add8c4a6 100644
--- a/sound/soc/codecs/cs42l84.c
+++ b/sound/soc/codecs/cs42l84.c
@@ -1096,7 +1096,7 @@ MODULE_DEVICE_TABLE(i2c, cs42l84_id);
static struct i2c_driver cs42l84_i2c_driver = {
.driver = {
.name = "cs42l84",
- .of_match_table = of_match_ptr(cs42l84_of_match),
+ .of_match_table = cs42l84_of_match,
},
.id_table = cs42l84_id,
.probe = cs42l84_i2c_probe,
--
2.39.5
Powered by blists - more mailing lists