Skip to content

Commit 7ea3876

Browse files
arndbkrzk
authored andcommitted
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>
1 parent 702a095 commit 7ea3876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mux/adg792a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ MODULE_DEVICE_TABLE(of, adg792a_of_match);
141141
static struct i2c_driver adg792a_driver = {
142142
.driver = {
143143
.name = "adg792a",
144-
.of_match_table = of_match_ptr(adg792a_of_match),
144+
.of_match_table = adg792a_of_match,
145145
},
146146
.probe = adg792a_probe,
147147
.id_table = adg792a_id,

0 commit comments

Comments
 (0)