All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] i2c: mt65xx: drop of_match_ptr for ID table
@ 2023-03-11 11:16 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 32+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:16 UTC (permalink / raw)
  To: Benson Leung, Guenter Roeck, Qii Wang, Matthias Brugger,
	AngeloGioacchino Del Regno, Andreas Färber,
	Manivannan Sadhasivam, Ard Biesheuvel, Michal Simek, linux-i2c,
	chrome-platform, linux-kernel, linux-arm-kernel, linux-mediatek,
	linux-actions
  Cc: Krzysztof Kozlowski

The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).

  drivers/i2c/busses/i2c-mt65xx.c:514:34: error: ‘mtk_i2c_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/i2c/busses/i2c-mt65xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c
index 43dd966d5ef5..59eaefe999b1 100644
--- a/drivers/i2c/busses/i2c-mt65xx.c
+++ b/drivers/i2c/busses/i2c-mt65xx.c
@@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_driver = {
 	.driver = {
 		.name = I2C_DRV_NAME,
 		.pm = &mtk_i2c_pm,
-		.of_match_table = of_match_ptr(mtk_i2c_of_match),
+		.of_match_table = mtk_i2c_of_match,
 	},
 };
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2023-03-29 18:57 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 11:16 [PATCH 1/5] i2c: mt65xx: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-11 11:16 ` Krzysztof Kozlowski
2023-03-11 11:16 ` [PATCH 2/5] i2c: owl: " Krzysztof Kozlowski
2023-03-11 11:16   ` Krzysztof Kozlowski
2023-03-11 16:05   ` Guenter Roeck
2023-03-11 16:05     ` Guenter Roeck
2023-03-16 19:56   ` Wolfram Sang
2023-03-16 19:56     ` Wolfram Sang
2023-03-11 11:16 ` [PATCH 3/5] i2c: xiic: hide OF related data for COMPILE_TEST Krzysztof Kozlowski
2023-03-11 11:16   ` Krzysztof Kozlowski
2023-03-11 16:34   ` Guenter Roeck
2023-03-11 16:34     ` Guenter Roeck
2023-03-29 18:56   ` Wolfram Sang
2023-03-29 18:56     ` Wolfram Sang
2023-03-11 11:16 ` [PATCH 4/5] i2c: cros-ec-tunnel: Mark ACPI and OF related data as maybe unused Krzysztof Kozlowski
2023-03-11 11:16   ` Krzysztof Kozlowski
2023-03-11 16:09   ` Guenter Roeck
2023-03-11 16:09     ` Guenter Roeck
2023-03-16 19:56   ` Wolfram Sang
2023-03-16 19:56     ` Wolfram Sang
2023-03-11 11:16 ` [PATCH 5/5] i2c: synquacer: mark " Krzysztof Kozlowski
2023-03-11 11:16   ` Krzysztof Kozlowski
2023-03-11 16:35   ` Guenter Roeck
2023-03-11 16:35     ` Guenter Roeck
2023-03-29 18:56   ` Wolfram Sang
2023-03-29 18:56     ` Wolfram Sang
2023-03-11 16:04 ` [PATCH 1/5] i2c: mt65xx: drop of_match_ptr for ID table Guenter Roeck
2023-03-11 16:04   ` Guenter Roeck
2023-03-13  8:47 ` AngeloGioacchino Del Regno
2023-03-13  8:47   ` AngeloGioacchino Del Regno
2023-03-16 19:56 ` Wolfram Sang
2023-03-16 19:56   ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.