853-v6.3-i2c-mt65xx-drop-of_match_ptr-for-ID-table.patch 1.3 KB

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