i2c: mux: remove incorrect of_match_ptr annotations
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Feb 2025 16:36:56 +0000 (17:36 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 18 Mar 2025 20:53:53 +0000 (21:53 +0100)
commit1a64b21282ddc4f7ec8aeb8195c20cf15bd32525
tree0fa4ab27f33efa6d0f38fa442c54d0d48b4c6a7b
parentb719afaa1e5d88a1b51d76adf344ff4a48efdb45
i2c: mux: remove incorrect of_match_ptr annotations

Building with W=1 shows a warning about ltc4306_of_match and
i2c_mux_reg_of_match being unused when CONFIG_OF is disabled:

    drivers/i2c/muxes/i2c-mux-ltc4306.c:200:34: error: unused variable 'ltc4306_of_match' [-Werror,-Wunused-const-variable]
    drivers/i2c/muxes/i2c-mux-reg.c:242:34: error: unused variable 'i2c_mux_reg_of_match' [-Werror,-Wunused-const-variable]

Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250225163700.4169480-1-arnd@kernel.org
drivers/i2c/muxes/i2c-mux-ltc4306.c
drivers/i2c/muxes/i2c-mux-reg.c