diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-03-11 12:16:58 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-03-29 20:54:28 +0200 |
commit | 79a1725028e0ba9982e31b3b8820a92cce704416 (patch) | |
tree | 9bc9f4d13beedbd38377e5b0f3f7a39ab4293464 /drivers/i2c | |
parent | dt-bindings: i2c: i2c-mt65xx: Add compatible for MT6795 Helio X10 (diff) | |
download | linux-79a1725028e0ba9982e31b3b8820a92cce704416.tar.xz linux-79a1725028e0ba9982e31b3b8820a92cce704416.zip |
i2c: synquacer: mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data
unused:
drivers/i2c/busses/i2c-synquacer.c:632:34: error: ‘synquacer_i2c_dt_ids’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-synquacer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index e4026c5416b1..50d19cf99a03 100644 --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -629,7 +629,7 @@ static int synquacer_i2c_remove(struct platform_device *pdev) return 0; }; -static const struct of_device_id synquacer_i2c_dt_ids[] = { +static const struct of_device_id synquacer_i2c_dt_ids[] __maybe_unused = { { .compatible = "socionext,synquacer-i2c" }, { /* sentinel */ } }; |