aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mux
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2025-04-09 14:22:56 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2025-05-01 19:43:43 +0200
commit7ea3876af994e4fd8065af0314bce6619e73667a (patch)
treedd780919ddc63e0f3031774eb3e2f23eaf035b36 /drivers/mux
parent702a09507d808a8cc844ac35a8cf00b4d652dab0 (diff)
downloadtip-7ea3876af994e4fd8065af0314bce6619e73667a.tar.gz
mux: adg792a: remove incorrect of_match_ptr annotation
Building with W=1 shows a warning about adg792a_of_match being unused when CONFIG_OF is disabled: drivers/mux/adg792a.c:134:34: error: unused variable 'adg792a_of_match' [-Werror,-Wunused-const-variable] Acked-by: Peter Rosin <peda@axentia.se> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20250409122314.2848028-4-arnd@kernel.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'drivers/mux')
-rw-r--r--drivers/mux/adg792a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mux/adg792a.c b/drivers/mux/adg792a.c
index 4da5aecb9fc62b..a5afe29e3cf105 100644
--- a/drivers/mux/adg792a.c
+++ b/drivers/mux/adg792a.c
@@ -141,7 +141,7 @@ MODULE_DEVICE_TABLE(of, adg792a_of_match);
static struct i2c_driver adg792a_driver = {
.driver = {
.name = "adg792a",
- .of_match_table = of_match_ptr(adg792a_of_match),
+ .of_match_table = adg792a_of_match,
},
.probe = adg792a_probe,
.id_table = adg792a_id,