1 From 8106fa2e0ae6082833fe1df97829c46c0183eaea Mon Sep 17 00:00:00 2001
2 From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
3 Date: Sat, 11 Mar 2023 12:16:54 +0100
4 Subject: [PATCH 14/16] i2c: mt65xx: drop of_match_ptr for ID table
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 The driver can match only via the DT table so the table should be always
10 used and the of_match_ptr does not have any sense (this also allows ACPI
11 matching via PRP0001, even though it might not be relevant here).
13 drivers/i2c/busses/i2c-mt65xx.c:514:34: error: ‘mtk_i2c_of_match’ defined but not used [-Werror=unused-const-variable=]
15 Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
16 Reviewed-by: Guenter Roeck <groeck@chromium.org>
17 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
18 Signed-off-by: Wolfram Sang <wsa@kernel.org>
20 drivers/i2c/busses/i2c-mt65xx.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 --- a/drivers/i2c/busses/i2c-mt65xx.c
24 +++ b/drivers/i2c/busses/i2c-mt65xx.c
25 @@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_dr
29 - .of_match_table = of_match_ptr(mtk_i2c_of_match),
30 + .of_match_table = mtk_i2c_of_match,