linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
@ 2023-03-12 13:12 Krzysztof Kozlowski
  2023-03-12 13:12 ` [PATCH 02/28] media: cec: meson: " Krzysztof Kozlowski
                   ` (30 more replies)
  0 siblings, 31 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/cec/i2c/ch7322.c b/drivers/media/cec/i2c/ch7322.c
index 34fad7123704..3c6e6496a001 100644
--- a/drivers/media/cec/i2c/ch7322.c
+++ b/drivers/media/cec/i2c/ch7322.c
@@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match);
 static struct i2c_driver ch7322_i2c_driver = {
 	.driver = {
 		.name = "ch7322",
-		.of_match_table = of_match_ptr(ch7322_of_match),
+		.of_match_table = ch7322_of_match,
 	},
 	.probe_new	= ch7322_probe,
 	.remove		= ch7322_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 02/28] media: cec: meson: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-12 20:22   ` Martin Blumenstingl
  2023-03-13 11:46   ` Hans Verkuil
  2023-03-12 13:12 ` [PATCH 03/28] media: cec: tegra: " Krzysztof Kozlowski
                   ` (29 subsequent siblings)
  30 siblings, 2 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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/media/cec/platform/meson/ao-cec.c:711:34: error: ‘meson_ao_cec_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/cec/platform/meson/ao-cec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/cec/platform/meson/ao-cec.c b/drivers/media/cec/platform/meson/ao-cec.c
index 6b440f0635d9..223c092dbb6a 100644
--- a/drivers/media/cec/platform/meson/ao-cec.c
+++ b/drivers/media/cec/platform/meson/ao-cec.c
@@ -719,7 +719,7 @@ static struct platform_driver meson_ao_cec_driver = {
 	.remove  = meson_ao_cec_remove,
 	.driver  = {
 		.name = "meson-ao-cec",
-		.of_match_table = of_match_ptr(meson_ao_cec_of_match),
+		.of_match_table = meson_ao_cec_of_match,
 	},
 };
 
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 03/28] media: cec: tegra: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
  2023-03-12 13:12 ` [PATCH 02/28] media: cec: meson: " Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-13 11:46   ` Hans Verkuil
  2023-03-12 13:12 ` [PATCH 04/28] media: rc: gpio-ir-recv: " Krzysztof Kozlowski
                   ` (28 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/cec/platform/tegra/tegra_cec.c:457:34: error: ‘tegra_cec_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/cec/platform/tegra/tegra_cec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/cec/platform/tegra/tegra_cec.c b/drivers/media/cec/platform/tegra/tegra_cec.c
index 5e907395ca2e..7115636ca748 100644
--- a/drivers/media/cec/platform/tegra/tegra_cec.c
+++ b/drivers/media/cec/platform/tegra/tegra_cec.c
@@ -464,7 +464,7 @@ static const struct of_device_id tegra_cec_of_match[] = {
 static struct platform_driver tegra_cec_driver = {
 	.driver = {
 		.name = TEGRA_CEC_NAME,
-		.of_match_table = of_match_ptr(tegra_cec_of_match),
+		.of_match_table = tegra_cec_of_match,
 	},
 	.probe = tegra_cec_probe,
 	.remove = tegra_cec_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 04/28] media: rc: gpio-ir-recv: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
  2023-03-12 13:12 ` [PATCH 02/28] media: cec: meson: " Krzysztof Kozlowski
  2023-03-12 13:12 ` [PATCH 03/28] media: cec: tegra: " Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-13 14:45   ` Sean Young
  2023-03-12 13:12 ` [PATCH 05/28] media: rc: gpio-ir-tx: " Krzysztof Kozlowski
                   ` (27 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/rc/gpio-ir-recv.c:197:34: error: ‘gpio_ir_recv_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/rc/gpio-ir-recv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c
index 8dbe780dae4e..ae1199cc73fd 100644
--- a/drivers/media/rc/gpio-ir-recv.c
+++ b/drivers/media/rc/gpio-ir-recv.c
@@ -205,7 +205,7 @@ static struct platform_driver gpio_ir_recv_driver = {
 	.remove = gpio_ir_recv_remove,
 	.driver = {
 		.name   = KBUILD_MODNAME,
-		.of_match_table = of_match_ptr(gpio_ir_recv_of_match),
+		.of_match_table = gpio_ir_recv_of_match,
 #ifdef CONFIG_PM
 		.pm	= &gpio_ir_recv_pm_ops,
 #endif
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 05/28] media: rc: gpio-ir-tx: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2023-03-12 13:12 ` [PATCH 04/28] media: rc: gpio-ir-recv: " Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-13 14:45   ` Sean Young
  2023-03-12 13:12 ` [PATCH 06/28] media: rc: ir-rx51: " Krzysztof Kozlowski
                   ` (26 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/rc/gpio-ir-tx.c:24:34: error: ‘gpio_ir_tx_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/rc/gpio-ir-tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/rc/gpio-ir-tx.c b/drivers/media/rc/gpio-ir-tx.c
index 2b829c146db1..1a8fea357f14 100644
--- a/drivers/media/rc/gpio-ir-tx.c
+++ b/drivers/media/rc/gpio-ir-tx.c
@@ -199,7 +199,7 @@ static struct platform_driver gpio_ir_tx_driver = {
 	.probe	= gpio_ir_tx_probe,
 	.driver = {
 		.name	= DRIVER_NAME,
-		.of_match_table = of_match_ptr(gpio_ir_tx_of_match),
+		.of_match_table = gpio_ir_tx_of_match,
 	},
 };
 module_platform_driver(gpio_ir_tx_driver);
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 06/28] media: rc: ir-rx51: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2023-03-12 13:12 ` [PATCH 05/28] media: rc: gpio-ir-tx: " Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-13 14:47   ` Sean Young
  2023-03-12 13:12 ` [PATCH 07/28] media: platform: allegro-dvt: " Krzysztof Kozlowski
                   ` (25 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/rc/ir-rx51.c:264:34: error: ‘ir_rx51_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c
index adbbe639a261..13e81bf8005d 100644
--- a/drivers/media/rc/ir-rx51.c
+++ b/drivers/media/rc/ir-rx51.c
@@ -275,7 +275,7 @@ static struct platform_driver ir_rx51_platform_driver = {
 	.resume		= ir_rx51_resume,
 	.driver		= {
 		.name	= KBUILD_MODNAME,
-		.of_match_table = of_match_ptr(ir_rx51_match),
+		.of_match_table = ir_rx51_match,
 	},
 };
 module_platform_driver(ir_rx51_platform_driver);
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 07/28] media: platform: allegro-dvt: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2023-03-12 13:12 ` [PATCH 06/28] media: rc: ir-rx51: " Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-13 14:56   ` Michael Tretter
  2023-03-12 13:12 ` [PATCH 08/28] media: platform: intel: pxa: " Krzysztof Kozlowski
                   ` (24 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/allegro-dvt/allegro-core.c:3995:34: error: ‘allegro_dt_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/allegro-dvt/allegro-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/allegro-dvt/allegro-core.c b/drivers/media/platform/allegro-dvt/allegro-core.c
index 2423714afcb9..7fc197a02cc2 100644
--- a/drivers/media/platform/allegro-dvt/allegro-core.c
+++ b/drivers/media/platform/allegro-dvt/allegro-core.c
@@ -4009,7 +4009,7 @@ static struct platform_driver allegro_driver = {
 	.remove = allegro_remove,
 	.driver = {
 		.name = "allegro",
-		.of_match_table = of_match_ptr(allegro_dt_ids),
+		.of_match_table = allegro_dt_ids,
 		.pm = &allegro_pm_ops,
 	},
 };
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 08/28] media: platform: intel: pxa: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2023-03-12 13:12 ` [PATCH 07/28] media: platform: allegro-dvt: " Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-12 13:12 ` [PATCH 09/28] media: platform: samsung: s5p-jpeg: " Krzysztof Kozlowski
                   ` (23 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/intel/pxa_camera.c:2449:34: error: ‘pxa_camera_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/platform/intel/pxa_camera.c b/drivers/media/platform/intel/pxa_camera.c
index 54270d6b6f50..f659abf1a22d 100644
--- a/drivers/media/platform/intel/pxa_camera.c
+++ b/drivers/media/platform/intel/pxa_camera.c
@@ -2456,7 +2456,7 @@ static struct platform_driver pxa_camera_driver = {
 	.driver		= {
 		.name	= PXA_CAM_DRV_NAME,
 		.pm	= &pxa_camera_pm,
-		.of_match_table = of_match_ptr(pxa_camera_of_match),
+		.of_match_table = pxa_camera_of_match,
 	},
 	.probe		= pxa_camera_probe,
 	.remove		= pxa_camera_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 09/28] media: platform: samsung: s5p-jpeg: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (6 preceding siblings ...)
  2023-03-12 13:12 ` [PATCH 08/28] media: platform: intel: pxa: " Krzysztof Kozlowski
@ 2023-03-12 13:12 ` Krzysztof Kozlowski
  2023-03-13 17:08   ` Andrzej Pietrasiewicz
  2023-03-12 13:13 ` [PATCH 10/28] media: platform: sti: " Krzysztof Kozlowski
                   ` (22 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:12 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c:3124:34: error: ‘samsung_jpeg_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c b/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
index 55814041b8d8..8be8e3596e07 100644
--- a/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
+++ b/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
@@ -3166,7 +3166,7 @@ static struct platform_driver s5p_jpeg_driver = {
 	.probe = s5p_jpeg_probe,
 	.remove = s5p_jpeg_remove,
 	.driver = {
-		.of_match_table	= of_match_ptr(samsung_jpeg_match),
+		.of_match_table	= samsung_jpeg_match,
 		.name		= S5P_JPEG_M2M_NAME,
 		.pm		= &s5p_jpeg_pm_ops,
 	},
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 10/28] media: platform: sti: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (7 preceding siblings ...)
  2023-03-12 13:12 ` [PATCH 09/28] media: platform: samsung: s5p-jpeg: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:13 ` [PATCH 11/28] media: platform: ti: am437x: " Krzysztof Kozlowski
                   ` (21 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c:1169:34: error: ‘c8sectpfe_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
index c38b62d4f1ae..67d4db0abd8a 100644
--- a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
+++ b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
@@ -1175,7 +1175,7 @@ MODULE_DEVICE_TABLE(of, c8sectpfe_match);
 static struct platform_driver c8sectpfe_driver = {
 	.driver = {
 		.name = "c8sectpfe",
-		.of_match_table = of_match_ptr(c8sectpfe_match),
+		.of_match_table = c8sectpfe_match,
 	},
 	.probe	= c8sectpfe_probe,
 	.remove	= c8sectpfe_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 11/28] media: platform: ti: am437x: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (8 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 10/28] media: platform: sti: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:41   ` Laurent Pinchart
  2023-03-13 20:53   ` Lad, Prabhakar
  2023-03-12 13:13 ` [PATCH 12/28] media: platform: verisilicon: " Krzysztof Kozlowski
                   ` (20 subsequent siblings)
  30 siblings, 2 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/ti/am437x/am437x-vpfe.c:2620:34: error: ‘vpfe_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/ti/am437x/am437x-vpfe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/ti/am437x/am437x-vpfe.c b/drivers/media/platform/ti/am437x/am437x-vpfe.c
index 2dfae9bc0bba..fe89b8e250e7 100644
--- a/drivers/media/platform/ti/am437x/am437x-vpfe.c
+++ b/drivers/media/platform/ti/am437x/am437x-vpfe.c
@@ -2629,7 +2629,7 @@ static struct platform_driver vpfe_driver = {
 	.driver = {
 		.name	= VPFE_MODULE_NAME,
 		.pm	= &vpfe_pm_ops,
-		.of_match_table = of_match_ptr(vpfe_of_match),
+		.of_match_table = vpfe_of_match,
 	},
 };
 
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 12/28] media: platform: verisilicon: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (9 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 11/28] media: platform: ti: am437x: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:13 ` [PATCH 13/28] media: platform: marvell: " Krzysztof Kozlowski
                   ` (19 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/verisilicon/hantro_drv.c:622:34: error: ‘of_hantro_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/media/platform/verisilicon/hantro_drv.c
index b0aeedae7b65..4041b5b38c4b 100644
--- a/drivers/media/platform/verisilicon/hantro_drv.c
+++ b/drivers/media/platform/verisilicon/hantro_drv.c
@@ -1135,7 +1135,7 @@ static struct platform_driver hantro_driver = {
 	.remove = hantro_remove,
 	.driver = {
 		   .name = DRIVER_NAME,
-		   .of_match_table = of_match_ptr(of_hantro_match),
+		   .of_match_table = of_hantro_match,
 		   .pm = &hantro_pm_ops,
 	},
 };
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 13/28] media: platform: marvell: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (10 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 12/28] media: platform: verisilicon: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:13 ` [PATCH 14/28] media: platform: mdp3: " Krzysztof Kozlowski
                   ` (18 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/marvell/mmp-driver.c:364:34: error: ‘mmpcam_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/marvell/mmp-driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/marvell/mmp-driver.c b/drivers/media/platform/marvell/mmp-driver.c
index ef22bf8f276c..b7747c7bae45 100644
--- a/drivers/media/platform/marvell/mmp-driver.c
+++ b/drivers/media/platform/marvell/mmp-driver.c
@@ -372,7 +372,7 @@ static struct platform_driver mmpcam_driver = {
 	.remove		= mmpcam_platform_remove,
 	.driver = {
 		.name	= "mmp-camera",
-		.of_match_table = of_match_ptr(mmpcam_of_match),
+		.of_match_table = mmpcam_of_match,
 		.pm = &mmpcam_pm_ops,
 	}
 };
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 14/28] media: platform: mdp3: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (11 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 13/28] media: platform: marvell: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:13 ` [PATCH 15/28] media: platform: mdp3: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (17 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c:49:34: error: ‘mdp_of_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c
index 97edcd9d1c81..45a407e63c59 100644
--- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c
+++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c
@@ -349,7 +349,7 @@ static struct platform_driver mdp_driver = {
 	.driver = {
 		.name	= MDP_MODULE_NAME,
 		.pm	= &mdp_pm_ops,
-		.of_match_table = of_match_ptr(mdp_of_ids),
+		.of_match_table = mdp_of_ids,
 	},
 };
 
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 15/28] media: platform: mdp3: mark OF related data as maybe unused
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (12 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 14/28] media: platform: mdp3: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:13 ` [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (16 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  Cc: Krzysztof Kozlowski

The driver can be compile tested with !CONFIG_OF making certain data
unused:

  drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:627:34: error: ‘mdp_sub_comp_dt_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
index 091a68685590..817ba9660b5f 100644
--- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
+++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
@@ -604,7 +604,7 @@ static const struct mdp_comp_match mdp_comp_matches[MDP_MAX_COMP_COUNT] = {
 	[MDP_COMP_WDMA] =	{ MDP_COMP_TYPE_WDMA, 0 },
 };
 
-static const struct of_device_id mdp_comp_dt_ids[] = {
+static const struct of_device_id mdp_comp_dt_ids[] __maybe_unused = {
 	{
 		.compatible = "mediatek,mt8183-mdp3-rdma",
 		.data = (void *)MDP_COMP_TYPE_RDMA,
@@ -624,7 +624,7 @@ static const struct of_device_id mdp_comp_dt_ids[] = {
 	{}
 };
 
-static const struct of_device_id mdp_sub_comp_dt_ids[] = {
+static const struct of_device_id mdp_sub_comp_dt_ids[] __maybe_unused = {
 	{
 		.compatible = "mediatek,mt8183-mdp3-wdma",
 		.data = (void *)MDP_COMP_TYPE_PATH,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (13 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 15/28] media: platform: mdp3: mark OF related data as maybe unused Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-14 16:02   ` Paul Kocialkowski
  2023-03-14 19:51   ` Jernej Škrabec
  2023-03-12 13:13 ` [PATCH 17/28] media: platform: sun6i-mipi-csi2: " Krzysztof Kozlowski
                   ` (15 subsequent siblings)
  30 siblings, 2 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c:401:34: error: ‘sun6i_csi_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
index e3e6650181c8..187a2419da96 100644
--- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
+++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
@@ -429,7 +429,7 @@ static struct platform_driver sun6i_csi_platform_driver = {
 	.remove	= sun6i_csi_remove,
 	.driver	= {
 		.name		= SUN6I_CSI_NAME,
-		.of_match_table	= of_match_ptr(sun6i_csi_of_match),
+		.of_match_table	= sun6i_csi_of_match,
 		.pm		= &sun6i_csi_pm_ops,
 	},
 };
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 17/28] media: platform: sun6i-mipi-csi2: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (14 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-14 16:04   ` Paul Kocialkowski
  2023-03-14 19:52   ` Jernej Škrabec
  2023-03-12 13:13 ` [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: " Krzysztof Kozlowski
                   ` (14 subsequent siblings)
  30 siblings, 2 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c:751:34: error: ‘sun6i_mipi_csi2_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c b/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
index a220ce849b41..0851b6b4e1ff 100644
--- a/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
+++ b/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
@@ -759,7 +759,7 @@ static struct platform_driver sun6i_mipi_csi2_platform_driver = {
 	.remove	= sun6i_mipi_csi2_remove,
 	.driver	= {
 		.name		= SUN6I_MIPI_CSI2_NAME,
-		.of_match_table	= of_match_ptr(sun6i_mipi_csi2_of_match),
+		.of_match_table	= sun6i_mipi_csi2_of_match,
 		.pm		= &sun6i_mipi_csi2_pm_ops,
 	},
 };
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (15 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 17/28] media: platform: sun6i-mipi-csi2: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-14 16:04   ` Paul Kocialkowski
  2023-03-14 19:52   ` Jernej Škrabec
  2023-03-12 13:13 ` [PATCH 19/28] media: platform: mdp: mark OF related data as maybe unused Krzysztof Kozlowski
                   ` (13 subsequent siblings)
  30 siblings, 2 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c:818:34: error: ‘sun8i_a83t_mipi_csi2_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
index cd2e92ae2293..1f0cc7b1ba47 100644
--- a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
+++ b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
@@ -826,7 +826,7 @@ static struct platform_driver sun8i_a83t_mipi_csi2_platform_driver = {
 	.remove	= sun8i_a83t_mipi_csi2_remove,
 	.driver	= {
 		.name		= SUN8I_A83T_MIPI_CSI2_NAME,
-		.of_match_table	= of_match_ptr(sun8i_a83t_mipi_csi2_of_match),
+		.of_match_table	= sun8i_a83t_mipi_csi2_of_match,
 		.pm		= &sun8i_a83t_mipi_csi2_pm_ops,
 	},
 };
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 19/28] media: platform: mdp: mark OF related data as maybe unused
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (16 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:13 ` [PATCH 20/28] media: platform: jpeg: always reference OF data Krzysztof Kozlowski
                   ` (12 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  Cc: Krzysztof Kozlowski

The driver can be compile tested with !CONFIG_OF making certain data
unused:

  drivers/media/platform/mediatek/mdp/mtk_mdp_core.c:31:34: error: ‘mtk_mdp_comp_dt_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/mediatek/mdp/mtk_mdp_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/mediatek/mdp/mtk_mdp_core.c b/drivers/media/platform/mediatek/mdp/mtk_mdp_core.c
index d83c4964eaf9..37f2dd08ecec 100644
--- a/drivers/media/platform/mediatek/mdp/mtk_mdp_core.c
+++ b/drivers/media/platform/mediatek/mdp/mtk_mdp_core.c
@@ -28,7 +28,7 @@ EXPORT_SYMBOL(mtk_mdp_dbg_level);
 
 module_param(mtk_mdp_dbg_level, int, 0644);
 
-static const struct of_device_id mtk_mdp_comp_dt_ids[] = {
+static const struct of_device_id mtk_mdp_comp_dt_ids[] __maybe_unused = {
 	{
 		.compatible = "mediatek,mt8173-mdp-rdma",
 		.data = (void *)MTK_MDP_RDMA
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 20/28] media: platform: jpeg: always reference OF data
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (17 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 19/28] media: platform: mdp: mark OF related data as maybe unused Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-21  8:11   ` Arnd Bergmann
  2023-06-20 21:03   ` [PATCH v2 " Sakari Ailus
  2023-03-12 13:13 ` [PATCH 21/28] media: i2c: isl7998x: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (11 subsequent siblings)
  30 siblings, 2 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error: ‘mtk8195_jpegdec_drvdata’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
index 969516a940ba..bd12e73492e5 100644
--- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
+++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
@@ -1898,7 +1898,6 @@ static const struct mtk_jpeg_variant mtk8195_jpegdec_drvdata = {
 	.cap_q_default_fourcc = V4L2_PIX_FMT_YUV420M,
 };
 
-#if defined(CONFIG_OF)
 static const struct of_device_id mtk_jpeg_match[] = {
 	{
 		.compatible = "mediatek,mt8173-jpgdec",
@@ -1924,14 +1923,13 @@ static const struct of_device_id mtk_jpeg_match[] = {
 };
 
 MODULE_DEVICE_TABLE(of, mtk_jpeg_match);
-#endif
 
 static struct platform_driver mtk_jpeg_driver = {
 	.probe = mtk_jpeg_probe,
 	.remove = mtk_jpeg_remove,
 	.driver = {
 		.name           = MTK_JPEG_NAME,
-		.of_match_table = of_match_ptr(mtk_jpeg_match),
+		.of_match_table = mtk_jpeg_match,
 		.pm             = &mtk_jpeg_pm_ops,
 	},
 };
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 21/28] media: i2c: isl7998x: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (18 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 20/28] media: platform: jpeg: always reference OF data Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:13 ` [PATCH 22/28] media: i2c: mt9m111: " Krzysztof Kozlowski
                   ` (10 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).
This also fixes !CONFIG_OF error:

  drivers/media/i2c/isl7998x.c:1557:34: error: ‘isl7998x_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/i2c/isl7998x.c b/drivers/media/i2c/isl7998x.c
index ae7af2cc94f5..b2b351816b82 100644
--- a/drivers/media/i2c/isl7998x.c
+++ b/drivers/media/i2c/isl7998x.c
@@ -1611,7 +1611,7 @@ static const struct dev_pm_ops isl7998x_pm_ops = {
 static struct i2c_driver isl7998x_i2c_driver = {
 	.driver = {
 		.name = "isl7998x",
-		.of_match_table = of_match_ptr(isl7998x_of_match),
+		.of_match_table = isl7998x_of_match,
 		.pm = &isl7998x_pm_ops,
 	},
 	.probe_new	= isl7998x_probe,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 22/28] media: i2c: mt9m111: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (19 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 21/28] media: i2c: isl7998x: drop of_match_ptr for ID table Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:43   ` Laurent Pinchart
  2023-03-12 13:13 ` [PATCH 23/28] media: i2c: ov2640: " Krzysztof Kozlowski
                   ` (9 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).
This also fixes !CONFIG_OF error:

  drivers/media/i2c/mt9m111.c:1370:34: error: ‘mt9m111_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c
index f5fe272d1205..20ed87d872c8 100644
--- a/drivers/media/i2c/mt9m111.c
+++ b/drivers/media/i2c/mt9m111.c
@@ -1382,7 +1382,7 @@ MODULE_DEVICE_TABLE(i2c, mt9m111_id);
 static struct i2c_driver mt9m111_i2c_driver = {
 	.driver = {
 		.name = "mt9m111",
-		.of_match_table = of_match_ptr(mt9m111_of_match),
+		.of_match_table = mt9m111_of_match,
 	},
 	.probe_new	= mt9m111_probe,
 	.remove		= mt9m111_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 23/28] media: i2c: ov2640: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (20 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 22/28] media: i2c: mt9m111: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:44   ` Laurent Pinchart
  2023-03-12 13:13 ` [PATCH 24/28] media: i2c: ov2680: " Krzysztof Kozlowski
                   ` (8 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).
This also fixes !CONFIG_OF error:

  drivers/media/i2c/ov2640.c:1290:34: error: ‘ov2640_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/i2c/ov2640.c
index 39d56838a4ef..a92c091356c5 100644
--- a/drivers/media/i2c/ov2640.c
+++ b/drivers/media/i2c/ov2640.c
@@ -1296,7 +1296,7 @@ MODULE_DEVICE_TABLE(of, ov2640_of_match);
 static struct i2c_driver ov2640_i2c_driver = {
 	.driver = {
 		.name = "ov2640",
-		.of_match_table = of_match_ptr(ov2640_of_match),
+		.of_match_table = ov2640_of_match,
 	},
 	.probe_new = ov2640_probe,
 	.remove   = ov2640_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 24/28] media: i2c: ov2680: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (21 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 23/28] media: i2c: ov2640: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:44   ` Laurent Pinchart
  2023-03-12 13:13 ` [PATCH 25/28] media: i2c: ov7740: " Krzysztof Kozlowski
                   ` (7 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/i2c/ov2680.c:1149:34: error: ‘ov2680_dt_ids’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c
index 54153bf66bdd..4d8724952c5f 100644
--- a/drivers/media/i2c/ov2680.c
+++ b/drivers/media/i2c/ov2680.c
@@ -1156,7 +1156,7 @@ static struct i2c_driver ov2680_i2c_driver = {
 	.driver = {
 		.name  = "ov2680",
 		.pm = &ov2680_pm_ops,
-		.of_match_table	= of_match_ptr(ov2680_dt_ids),
+		.of_match_table	= ov2680_dt_ids,
 	},
 	.probe_new	= ov2680_probe,
 	.remove		= ov2680_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 25/28] media: i2c: ov7740: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (22 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 24/28] media: i2c: ov2680: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:44   ` Laurent Pinchart
  2023-03-12 13:13 ` [PATCH 26/28] media: i2c: imx290: " Krzysztof Kozlowski
                   ` (6 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).
This also fixes !CONFIG_OF error:

  drivers/media/i2c/ov7740.c:1203:34: error: ‘ov7740_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/i2c/ov7740.c b/drivers/media/i2c/ov7740.c
index c9fd9b0bc54a..42121916d25f 100644
--- a/drivers/media/i2c/ov7740.c
+++ b/drivers/media/i2c/ov7740.c
@@ -1210,7 +1210,7 @@ static struct i2c_driver ov7740_i2c_driver = {
 	.driver = {
 		.name = "ov7740",
 		.pm = &ov7740_pm_ops,
-		.of_match_table = of_match_ptr(ov7740_of_match),
+		.of_match_table = ov7740_of_match,
 	},
 	.probe_new = ov7740_probe,
 	.remove   = ov7740_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 26/28] media: i2c: imx290: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (23 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 25/28] media: i2c: ov7740: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:44   ` Laurent Pinchart
  2023-03-12 13:13 ` [PATCH 27/28] media: i2c: max9286: " Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/i2c/imx290.c:1354:34: error: ‘imx290_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c
index 49d6c8bdec41..3c9470fbfd53 100644
--- a/drivers/media/i2c/imx290.c
+++ b/drivers/media/i2c/imx290.c
@@ -1363,7 +1363,7 @@ static struct i2c_driver imx290_i2c_driver = {
 	.driver = {
 		.name  = "imx290",
 		.pm = &imx290_pm_ops,
-		.of_match_table = of_match_ptr(imx290_of_match),
+		.of_match_table = imx290_of_match,
 	},
 };
 
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 27/28] media: i2c: max9286: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (24 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 26/28] media: i2c: imx290: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-12 13:45   ` Laurent Pinchart
  2023-03-12 13:13 ` [PATCH 28/28] media: dvb: mn88443x: " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  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).  This
also fixes !CONFIG_OF error:

  drivers/media/i2c/max9286.c:1707:34: error: ‘max9286_dt_ids’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
index 701038d6d19b..ed932ff9ec74 100644
--- a/drivers/media/i2c/max9286.c
+++ b/drivers/media/i2c/max9286.c
@@ -1713,7 +1713,7 @@ MODULE_DEVICE_TABLE(of, max9286_dt_ids);
 static struct i2c_driver max9286_i2c_driver = {
 	.driver	= {
 		.name		= "max9286",
-		.of_match_table	= of_match_ptr(max9286_dt_ids),
+		.of_match_table	= max9286_dt_ids,
 	},
 	.probe_new	= max9286_probe,
 	.remove		= max9286_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 28/28] media: dvb: mn88443x: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (25 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 27/28] media: i2c: max9286: " Krzysztof Kozlowski
@ 2023-03-12 13:13 ` Krzysztof Kozlowski
  2023-03-13 11:46 ` [PATCH 01/28] media: cec: ch7322: " Hans Verkuil
                   ` (3 subsequent siblings)
  30 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-12 13:13 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip
  Cc: Krzysztof Kozlowski

The driver will match mostly by DT table (even thought there is regular
ID table) so there is little benefit in of_match_ptr (this also allows
ACPI matching via PRP0001, even though it might not be relevant here).
This also fixes !CONFIG_OF error:

  drivers/media/dvb-frontends/mn88443x.c:782:34: error: ‘mn88443x_of_match’ defined but not used [-Werror=unused-const-variable=]

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

diff --git a/drivers/media/dvb-frontends/mn88443x.c b/drivers/media/dvb-frontends/mn88443x.c
index 1f1753f2ab1a..0782f8377eb2 100644
--- a/drivers/media/dvb-frontends/mn88443x.c
+++ b/drivers/media/dvb-frontends/mn88443x.c
@@ -798,7 +798,7 @@ MODULE_DEVICE_TABLE(i2c, mn88443x_i2c_id);
 static struct i2c_driver mn88443x_driver = {
 	.driver = {
 		.name = "mn88443x",
-		.of_match_table = of_match_ptr(mn88443x_of_match),
+		.of_match_table = mn88443x_of_match,
 	},
 	.probe_new = mn88443x_probe,
 	.remove   = mn88443x_remove,
-- 
2.34.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 11/28] media: platform: ti: am437x: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 11/28] media: platform: ti: am437x: " Krzysztof Kozlowski
@ 2023-03-12 13:41   ` Laurent Pinchart
  2023-03-13 20:53   ` Lad, Prabhakar
  1 sibling, 0 replies; 71+ messages in thread
From: Laurent Pinchart @ 2023-03-12 13:41 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

Thank you for the patch.

On Sun, Mar 12, 2023 at 02:13:01PM +0100, Krzysztof Kozlowski wrote:
> 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).  This

"might not be relevant" is a bit of an understatement in this case :-)

> also fixes !CONFIG_OF error:
> 
>   drivers/media/platform/ti/am437x/am437x-vpfe.c:2620:34: error: ‘vpfe_of_match’ defined but not used [-Werror=unused-const-variable=]

This driver should probably depend on CONFIG_OF, but that's a separate
issue.

> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/platform/ti/am437x/am437x-vpfe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/ti/am437x/am437x-vpfe.c b/drivers/media/platform/ti/am437x/am437x-vpfe.c
> index 2dfae9bc0bba..fe89b8e250e7 100644
> --- a/drivers/media/platform/ti/am437x/am437x-vpfe.c
> +++ b/drivers/media/platform/ti/am437x/am437x-vpfe.c
> @@ -2629,7 +2629,7 @@ static struct platform_driver vpfe_driver = {
>  	.driver = {
>  		.name	= VPFE_MODULE_NAME,
>  		.pm	= &vpfe_pm_ops,
> -		.of_match_table = of_match_ptr(vpfe_of_match),
> +		.of_match_table = vpfe_of_match,
>  	},
>  };
>  

-- 
Regards,

Laurent Pinchart

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 22/28] media: i2c: mt9m111: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 22/28] media: i2c: mt9m111: " Krzysztof Kozlowski
@ 2023-03-12 13:43   ` Laurent Pinchart
  0 siblings, 0 replies; 71+ messages in thread
From: Laurent Pinchart @ 2023-03-12 13:43 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

Thank you for the patch.

On Sun, Mar 12, 2023 at 02:13:12PM +0100, Krzysztof Kozlowski wrote:
> The driver will match mostly by DT table (even thought there is regular
> ID table) so there is little benefit in of_match_ptr (this also allows
> ACPI matching via PRP0001, even though it might not be relevant here).
> This also fixes !CONFIG_OF error:
> 
>   drivers/media/i2c/mt9m111.c:1370:34: error: ‘mt9m111_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/mt9m111.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c
> index f5fe272d1205..20ed87d872c8 100644
> --- a/drivers/media/i2c/mt9m111.c
> +++ b/drivers/media/i2c/mt9m111.c
> @@ -1382,7 +1382,7 @@ MODULE_DEVICE_TABLE(i2c, mt9m111_id);
>  static struct i2c_driver mt9m111_i2c_driver = {
>  	.driver = {
>  		.name = "mt9m111",
> -		.of_match_table = of_match_ptr(mt9m111_of_match),
> +		.of_match_table = mt9m111_of_match,
>  	},
>  	.probe_new	= mt9m111_probe,
>  	.remove		= mt9m111_remove,

-- 
Regards,

Laurent Pinchart

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 23/28] media: i2c: ov2640: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 23/28] media: i2c: ov2640: " Krzysztof Kozlowski
@ 2023-03-12 13:44   ` Laurent Pinchart
  0 siblings, 0 replies; 71+ messages in thread
From: Laurent Pinchart @ 2023-03-12 13:44 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

Thank you for the patch.

On Sun, Mar 12, 2023 at 02:13:13PM +0100, Krzysztof Kozlowski wrote:
> The driver will match mostly by DT table (even thought there is regular
> ID table) so there is little benefit in of_match_ptr (this also allows
> ACPI matching via PRP0001, even though it might not be relevant here).
> This also fixes !CONFIG_OF error:
> 
>   drivers/media/i2c/ov2640.c:1290:34: error: ‘ov2640_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/ov2640.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/i2c/ov2640.c
> index 39d56838a4ef..a92c091356c5 100644
> --- a/drivers/media/i2c/ov2640.c
> +++ b/drivers/media/i2c/ov2640.c
> @@ -1296,7 +1296,7 @@ MODULE_DEVICE_TABLE(of, ov2640_of_match);
>  static struct i2c_driver ov2640_i2c_driver = {
>  	.driver = {
>  		.name = "ov2640",
> -		.of_match_table = of_match_ptr(ov2640_of_match),
> +		.of_match_table = ov2640_of_match,
>  	},
>  	.probe_new = ov2640_probe,
>  	.remove   = ov2640_remove,

-- 
Regards,

Laurent Pinchart

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 24/28] media: i2c: ov2680: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 24/28] media: i2c: ov2680: " Krzysztof Kozlowski
@ 2023-03-12 13:44   ` Laurent Pinchart
  0 siblings, 0 replies; 71+ messages in thread
From: Laurent Pinchart @ 2023-03-12 13:44 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

Thank you for the patch.

On Sun, Mar 12, 2023 at 02:13:14PM +0100, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/i2c/ov2680.c:1149:34: error: ‘ov2680_dt_ids’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/ov2680.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c
> index 54153bf66bdd..4d8724952c5f 100644
> --- a/drivers/media/i2c/ov2680.c
> +++ b/drivers/media/i2c/ov2680.c
> @@ -1156,7 +1156,7 @@ static struct i2c_driver ov2680_i2c_driver = {
>  	.driver = {
>  		.name  = "ov2680",
>  		.pm = &ov2680_pm_ops,
> -		.of_match_table	= of_match_ptr(ov2680_dt_ids),
> +		.of_match_table	= ov2680_dt_ids,
>  	},
>  	.probe_new	= ov2680_probe,
>  	.remove		= ov2680_remove,

-- 
Regards,

Laurent Pinchart

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 25/28] media: i2c: ov7740: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 25/28] media: i2c: ov7740: " Krzysztof Kozlowski
@ 2023-03-12 13:44   ` Laurent Pinchart
  0 siblings, 0 replies; 71+ messages in thread
From: Laurent Pinchart @ 2023-03-12 13:44 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

Thank you for the patch.

On Sun, Mar 12, 2023 at 02:13:15PM +0100, Krzysztof Kozlowski wrote:
> The driver will match mostly by DT table (even thought there is regular
> ID table) so there is little benefit in of_match_ptr (this also allows
> ACPI matching via PRP0001, even though it might not be relevant here).
> This also fixes !CONFIG_OF error:
> 
>   drivers/media/i2c/ov7740.c:1203:34: error: ‘ov7740_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/ov7740.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/ov7740.c b/drivers/media/i2c/ov7740.c
> index c9fd9b0bc54a..42121916d25f 100644
> --- a/drivers/media/i2c/ov7740.c
> +++ b/drivers/media/i2c/ov7740.c
> @@ -1210,7 +1210,7 @@ static struct i2c_driver ov7740_i2c_driver = {
>  	.driver = {
>  		.name = "ov7740",
>  		.pm = &ov7740_pm_ops,
> -		.of_match_table = of_match_ptr(ov7740_of_match),
> +		.of_match_table = ov7740_of_match,
>  	},
>  	.probe_new = ov7740_probe,
>  	.remove   = ov7740_remove,

-- 
Regards,

Laurent Pinchart

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 26/28] media: i2c: imx290: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 26/28] media: i2c: imx290: " Krzysztof Kozlowski
@ 2023-03-12 13:44   ` Laurent Pinchart
  0 siblings, 0 replies; 71+ messages in thread
From: Laurent Pinchart @ 2023-03-12 13:44 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

Thank you for the patch.

On Sun, Mar 12, 2023 at 02:13:16PM +0100, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/i2c/imx290.c:1354:34: error: ‘imx290_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/imx290.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c
> index 49d6c8bdec41..3c9470fbfd53 100644
> --- a/drivers/media/i2c/imx290.c
> +++ b/drivers/media/i2c/imx290.c
> @@ -1363,7 +1363,7 @@ static struct i2c_driver imx290_i2c_driver = {
>  	.driver = {
>  		.name  = "imx290",
>  		.pm = &imx290_pm_ops,
> -		.of_match_table = of_match_ptr(imx290_of_match),
> +		.of_match_table = imx290_of_match,
>  	},
>  };
>  

-- 
Regards,

Laurent Pinchart

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 27/28] media: i2c: max9286: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 27/28] media: i2c: max9286: " Krzysztof Kozlowski
@ 2023-03-12 13:45   ` Laurent Pinchart
  0 siblings, 0 replies; 71+ messages in thread
From: Laurent Pinchart @ 2023-03-12 13:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

Thank you for the patch.

On Sun, Mar 12, 2023 at 02:13:17PM +0100, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/i2c/max9286.c:1707:34: error: ‘max9286_dt_ids’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/max9286.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c
> index 701038d6d19b..ed932ff9ec74 100644
> --- a/drivers/media/i2c/max9286.c
> +++ b/drivers/media/i2c/max9286.c
> @@ -1713,7 +1713,7 @@ MODULE_DEVICE_TABLE(of, max9286_dt_ids);
>  static struct i2c_driver max9286_i2c_driver = {
>  	.driver	= {
>  		.name		= "max9286",
> -		.of_match_table	= of_match_ptr(max9286_dt_ids),
> +		.of_match_table	= max9286_dt_ids,
>  	},
>  	.probe_new	= max9286_probe,
>  	.remove		= max9286_remove,

-- 
Regards,

Laurent Pinchart

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 02/28] media: cec: meson: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 02/28] media: cec: meson: " Krzysztof Kozlowski
@ 2023-03-12 20:22   ` Martin Blumenstingl
  2023-03-13 11:46   ` Hans Verkuil
  1 sibling, 0 replies; 71+ messages in thread
From: Martin Blumenstingl @ 2023-03-12 20:22 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Thierry Reding, Jonathan Hunter,
	Manivannan Sadhasivam, Michael Tretter, Pengutronix Kernel Team,
	Jacopo Mondi, Kieran Bingham, Laurent Pinchart,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On Sun, Mar 12, 2023 at 2:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> 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/media/cec/platform/meson/ao-cec.c:711:34: error: ‘meson_ao_cec_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (26 preceding siblings ...)
  2023-03-12 13:13 ` [PATCH 28/28] media: dvb: mn88443x: " Krzysztof Kozlowski
@ 2023-03-13 11:46 ` Hans Verkuil
  2023-03-14 16:31   ` Krzysztof Kozlowski
  2023-03-13 22:01 ` Guenter Roeck
                   ` (2 subsequent siblings)
  30 siblings, 1 reply; 71+ messages in thread
From: Hans Verkuil @ 2023-03-13 11:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Joe Tessler, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jonathan Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

I assume you want to take this series, but if you prefer to have us do it, then
just let me know.

Thanks!

	Hans

> ---
>  drivers/media/cec/i2c/ch7322.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/cec/i2c/ch7322.c b/drivers/media/cec/i2c/ch7322.c
> index 34fad7123704..3c6e6496a001 100644
> --- a/drivers/media/cec/i2c/ch7322.c
> +++ b/drivers/media/cec/i2c/ch7322.c
> @@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match);
>  static struct i2c_driver ch7322_i2c_driver = {
>  	.driver = {
>  		.name = "ch7322",
> -		.of_match_table = of_match_ptr(ch7322_of_match),
> +		.of_match_table = ch7322_of_match,
>  	},
>  	.probe_new	= ch7322_probe,
>  	.remove		= ch7322_remove,


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 02/28] media: cec: meson: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 02/28] media: cec: meson: " Krzysztof Kozlowski
  2023-03-12 20:22   ` Martin Blumenstingl
@ 2023-03-13 11:46   ` Hans Verkuil
  1 sibling, 0 replies; 71+ messages in thread
From: Hans Verkuil @ 2023-03-13 11:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Joe Tessler, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jonathan Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
> 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/media/cec/platform/meson/ao-cec.c:711:34: error: ‘meson_ao_cec_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

Thanks!

	Hans

> ---
>  drivers/media/cec/platform/meson/ao-cec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/cec/platform/meson/ao-cec.c b/drivers/media/cec/platform/meson/ao-cec.c
> index 6b440f0635d9..223c092dbb6a 100644
> --- a/drivers/media/cec/platform/meson/ao-cec.c
> +++ b/drivers/media/cec/platform/meson/ao-cec.c
> @@ -719,7 +719,7 @@ static struct platform_driver meson_ao_cec_driver = {
>  	.remove  = meson_ao_cec_remove,
>  	.driver  = {
>  		.name = "meson-ao-cec",
> -		.of_match_table = of_match_ptr(meson_ao_cec_of_match),
> +		.of_match_table = meson_ao_cec_of_match,
>  	},
>  };
>  


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 03/28] media: cec: tegra: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 03/28] media: cec: tegra: " Krzysztof Kozlowski
@ 2023-03-13 11:46   ` Hans Verkuil
  0 siblings, 0 replies; 71+ messages in thread
From: Hans Verkuil @ 2023-03-13 11:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Joe Tessler, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jonathan Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/cec/platform/tegra/tegra_cec.c:457:34: error: ‘tegra_cec_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

Thanks!

	Hans


> ---
>  drivers/media/cec/platform/tegra/tegra_cec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/cec/platform/tegra/tegra_cec.c b/drivers/media/cec/platform/tegra/tegra_cec.c
> index 5e907395ca2e..7115636ca748 100644
> --- a/drivers/media/cec/platform/tegra/tegra_cec.c
> +++ b/drivers/media/cec/platform/tegra/tegra_cec.c
> @@ -464,7 +464,7 @@ static const struct of_device_id tegra_cec_of_match[] = {
>  static struct platform_driver tegra_cec_driver = {
>  	.driver = {
>  		.name = TEGRA_CEC_NAME,
> -		.of_match_table = of_match_ptr(tegra_cec_of_match),
> +		.of_match_table = tegra_cec_of_match,
>  	},
>  	.probe = tegra_cec_probe,
>  	.remove = tegra_cec_remove,


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 04/28] media: rc: gpio-ir-recv: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 04/28] media: rc: gpio-ir-recv: " Krzysztof Kozlowski
@ 2023-03-13 14:45   ` Sean Young
  0 siblings, 0 replies; 71+ messages in thread
From: Sean Young @ 2023-03-13 14:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, linux-media,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip

On Sun, Mar 12, 2023 at 02:12:54PM +0100, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/rc/gpio-ir-recv.c:197:34: error: ‘gpio_ir_recv_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Sean Young <sean@mess.org>

Thanks
Sean

> ---
>  drivers/media/rc/gpio-ir-recv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c
> index 8dbe780dae4e..ae1199cc73fd 100644
> --- a/drivers/media/rc/gpio-ir-recv.c
> +++ b/drivers/media/rc/gpio-ir-recv.c
> @@ -205,7 +205,7 @@ static struct platform_driver gpio_ir_recv_driver = {
>  	.remove = gpio_ir_recv_remove,
>  	.driver = {
>  		.name   = KBUILD_MODNAME,
> -		.of_match_table = of_match_ptr(gpio_ir_recv_of_match),
> +		.of_match_table = gpio_ir_recv_of_match,
>  #ifdef CONFIG_PM
>  		.pm	= &gpio_ir_recv_pm_ops,
>  #endif
> -- 
> 2.34.1

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 05/28] media: rc: gpio-ir-tx: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 05/28] media: rc: gpio-ir-tx: " Krzysztof Kozlowski
@ 2023-03-13 14:45   ` Sean Young
  0 siblings, 0 replies; 71+ messages in thread
From: Sean Young @ 2023-03-13 14:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, linux-media,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip

On Sun, Mar 12, 2023 at 02:12:55PM +0100, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/rc/gpio-ir-tx.c:24:34: error: ‘gpio_ir_tx_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Sean Young <sean@mess.org>

Thanks
Sean

> ---
>  drivers/media/rc/gpio-ir-tx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/rc/gpio-ir-tx.c b/drivers/media/rc/gpio-ir-tx.c
> index 2b829c146db1..1a8fea357f14 100644
> --- a/drivers/media/rc/gpio-ir-tx.c
> +++ b/drivers/media/rc/gpio-ir-tx.c
> @@ -199,7 +199,7 @@ static struct platform_driver gpio_ir_tx_driver = {
>  	.probe	= gpio_ir_tx_probe,
>  	.driver = {
>  		.name	= DRIVER_NAME,
> -		.of_match_table = of_match_ptr(gpio_ir_tx_of_match),
> +		.of_match_table = gpio_ir_tx_of_match,
>  	},
>  };
>  module_platform_driver(gpio_ir_tx_driver);
> -- 
> 2.34.1

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 06/28] media: rc: ir-rx51: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 06/28] media: rc: ir-rx51: " Krzysztof Kozlowski
@ 2023-03-13 14:47   ` Sean Young
  0 siblings, 0 replies; 71+ messages in thread
From: Sean Young @ 2023-03-13 14:47 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, linux-media,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip

On Sun, Mar 12, 2023 at 02:12:56PM +0100, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/rc/ir-rx51.c:264:34: error: ‘ir_rx51_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Sean Young <sean@mess.org>

Thanks
Sean

> ---
>  drivers/media/rc/ir-rx51.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c
> index adbbe639a261..13e81bf8005d 100644
> --- a/drivers/media/rc/ir-rx51.c
> +++ b/drivers/media/rc/ir-rx51.c
> @@ -275,7 +275,7 @@ static struct platform_driver ir_rx51_platform_driver = {
>  	.resume		= ir_rx51_resume,
>  	.driver		= {
>  		.name	= KBUILD_MODNAME,
> -		.of_match_table = of_match_ptr(ir_rx51_match),
> +		.of_match_table = ir_rx51_match,
>  	},
>  };
>  module_platform_driver(ir_rx51_platform_driver);
> -- 
> 2.34.1

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 07/28] media: platform: allegro-dvt: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 07/28] media: platform: allegro-dvt: " Krzysztof Kozlowski
@ 2023-03-13 14:56   ` Michael Tretter
  0 siblings, 0 replies; 71+ messages in thread
From: Michael Tretter @ 2023-03-13 14:56 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Pengutronix Kernel Team,
	Jacopo Mondi, Kieran Bingham, Laurent Pinchart,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On Sun, 12 Mar 2023 14:12:57 +0100, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/platform/allegro-dvt/allegro-core.c:3995:34: error: ‘allegro_dt_ids’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>

> ---
>  drivers/media/platform/allegro-dvt/allegro-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/allegro-dvt/allegro-core.c b/drivers/media/platform/allegro-dvt/allegro-core.c
> index 2423714afcb9..7fc197a02cc2 100644
> --- a/drivers/media/platform/allegro-dvt/allegro-core.c
> +++ b/drivers/media/platform/allegro-dvt/allegro-core.c
> @@ -4009,7 +4009,7 @@ static struct platform_driver allegro_driver = {
>  	.remove = allegro_remove,
>  	.driver = {
>  		.name = "allegro",
> -		.of_match_table = of_match_ptr(allegro_dt_ids),
> +		.of_match_table = allegro_dt_ids,
>  		.pm = &allegro_pm_ops,
>  	},
>  };
> -- 
> 2.34.1
> 
> 

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 09/28] media: platform: samsung: s5p-jpeg: drop of_match_ptr for ID table
  2023-03-12 13:12 ` [PATCH 09/28] media: platform: samsung: s5p-jpeg: " Krzysztof Kozlowski
@ 2023-03-13 17:08   ` Andrzej Pietrasiewicz
  0 siblings, 0 replies; 71+ messages in thread
From: Andrzej Pietrasiewicz @ 2023-03-13 17:08 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Joe Tessler, Hans Verkuil,
	Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Jacek Anaszewski, Sylwester Nawrocki,
	Patrice Chotard, Yong Deng, Paul Kocialkowski, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Lad, Prabhakar, Ezequiel Garcia,
	Philipp Zabel, Sean Young, linux-media, linux-kernel,
	linux-amlogic, linux-arm-kernel, linux-tegra, linux-mediatek,
	linux-sunxi, linux-rockchip

Hi,


W dniu 12.03.2023 o 14:12, Krzysztof Kozlowski pisze:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>    drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c:3124:34: error: ‘samsung_jpeg_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Acked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>

> ---
>   drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c b/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
> index 55814041b8d8..8be8e3596e07 100644
> --- a/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
> +++ b/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
> @@ -3166,7 +3166,7 @@ static struct platform_driver s5p_jpeg_driver = {
>   	.probe = s5p_jpeg_probe,
>   	.remove = s5p_jpeg_remove,
>   	.driver = {
> -		.of_match_table	= of_match_ptr(samsung_jpeg_match),
> +		.of_match_table	= samsung_jpeg_match,
>   		.name		= S5P_JPEG_M2M_NAME,
>   		.pm		= &s5p_jpeg_pm_ops,
>   	},

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 11/28] media: platform: ti: am437x: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 11/28] media: platform: ti: am437x: " Krzysztof Kozlowski
  2023-03-12 13:41   ` Laurent Pinchart
@ 2023-03-13 20:53   ` Lad, Prabhakar
  1 sibling, 0 replies; 71+ messages in thread
From: Lad, Prabhakar @ 2023-03-13 20:53 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Ezequiel Garcia, Philipp Zabel, Sean Young, linux-media,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip

On Sun, Mar 12, 2023 at 1:13 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> 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).  This
> also fixes !CONFIG_OF error:
>
>   drivers/media/platform/ti/am437x/am437x-vpfe.c:2620:34: error: ‘vpfe_of_match’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  drivers/media/platform/ti/am437x/am437x-vpfe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Lad Prabhakar <prabhakar.csengg@gmail.com>

Cheers,
Prabhakar

> diff --git a/drivers/media/platform/ti/am437x/am437x-vpfe.c b/drivers/media/platform/ti/am437x/am437x-vpfe.c
> index 2dfae9bc0bba..fe89b8e250e7 100644
> --- a/drivers/media/platform/ti/am437x/am437x-vpfe.c
> +++ b/drivers/media/platform/ti/am437x/am437x-vpfe.c
> @@ -2629,7 +2629,7 @@ static struct platform_driver vpfe_driver = {
>         .driver = {
>                 .name   = VPFE_MODULE_NAME,
>                 .pm     = &vpfe_pm_ops,
> -               .of_match_table = of_match_ptr(vpfe_of_match),
> +               .of_match_table = vpfe_of_match,
>         },
>  };
>
> --
> 2.34.1
>

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (27 preceding siblings ...)
  2023-03-13 11:46 ` [PATCH 01/28] media: cec: ch7322: " Hans Verkuil
@ 2023-03-13 22:01 ` Guenter Roeck
       [not found]   ` <74ae8afe-c537-1714-77ec-8a80d8ddad69@xs4all.nl>
  2023-05-12 16:35 ` Krzysztof Kozlowski
  2023-06-21 18:06 ` Guenter Roeck
  30 siblings, 1 reply; 71+ messages in thread
From: Guenter Roeck @ 2023-03-13 22:01 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On Sun, Mar 12, 2023 at 02:12:51PM +0100, Krzysztof Kozlowski wrote:
> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

FWIW: There is also
https://patches.linaro.org/project/linux-media/patch/20230215214724.3798917-1-linux@roeck-us.net/

The lack of ACPI support is a real problem and very relevant.

Guenter

> ---
>  drivers/media/cec/i2c/ch7322.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/cec/i2c/ch7322.c b/drivers/media/cec/i2c/ch7322.c
> index 34fad7123704..3c6e6496a001 100644
> --- a/drivers/media/cec/i2c/ch7322.c
> +++ b/drivers/media/cec/i2c/ch7322.c
> @@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match);
>  static struct i2c_driver ch7322_i2c_driver = {
>  	.driver = {
>  		.name = "ch7322",
> -		.of_match_table = of_match_ptr(ch7322_of_match),
> +		.of_match_table = ch7322_of_match,
>  	},
>  	.probe_new	= ch7322_probe,
>  	.remove		= ch7322_remove,

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table Krzysztof Kozlowski
@ 2023-03-14 16:02   ` Paul Kocialkowski
  2023-03-14 19:51   ` Jernej Škrabec
  1 sibling, 0 replies; 71+ messages in thread
From: Paul Kocialkowski @ 2023-03-14 16:02 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Lad, Prabhakar, Ezequiel Garcia,
	Philipp Zabel, Sean Young, linux-media, linux-kernel,
	linux-amlogic, linux-arm-kernel, linux-tegra, linux-mediatek,
	linux-sunxi, linux-rockchip


[-- Attachment #1.1: Type: text/plain, Size: 1500 bytes --]

Hi Krzysztof,

On Sun 12 Mar 23, 14:13, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c:401:34: error: ‘sun6i_csi_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Looks good to me:
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>

Thanks !

Paul

> ---
>  drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
> index e3e6650181c8..187a2419da96 100644
> --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
> +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
> @@ -429,7 +429,7 @@ static struct platform_driver sun6i_csi_platform_driver = {
>  	.remove	= sun6i_csi_remove,
>  	.driver	= {
>  		.name		= SUN6I_CSI_NAME,
> -		.of_match_table	= of_match_ptr(sun6i_csi_of_match),
> +		.of_match_table	= sun6i_csi_of_match,
>  		.pm		= &sun6i_csi_pm_ops,
>  	},
>  };
> -- 
> 2.34.1
> 

-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 17/28] media: platform: sun6i-mipi-csi2: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 17/28] media: platform: sun6i-mipi-csi2: " Krzysztof Kozlowski
@ 2023-03-14 16:04   ` Paul Kocialkowski
  2023-03-14 19:52   ` Jernej Škrabec
  1 sibling, 0 replies; 71+ messages in thread
From: Paul Kocialkowski @ 2023-03-14 16:04 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Lad, Prabhakar, Ezequiel Garcia,
	Philipp Zabel, Sean Young, linux-media, linux-kernel,
	linux-amlogic, linux-arm-kernel, linux-tegra, linux-mediatek,
	linux-sunxi, linux-rockchip


[-- Attachment #1.1: Type: text/plain, Size: 1614 bytes --]

Hi Krzysztof,

On Sun 12 Mar 23, 14:13, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c:751:34: error: ‘sun6i_mipi_csi2_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Looks good to me:
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>

Thanks !

Paul

> ---
>  drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c b/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
> index a220ce849b41..0851b6b4e1ff 100644
> --- a/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
> +++ b/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
> @@ -759,7 +759,7 @@ static struct platform_driver sun6i_mipi_csi2_platform_driver = {
>  	.remove	= sun6i_mipi_csi2_remove,
>  	.driver	= {
>  		.name		= SUN6I_MIPI_CSI2_NAME,
> -		.of_match_table	= of_match_ptr(sun6i_mipi_csi2_of_match),
> +		.of_match_table	= sun6i_mipi_csi2_of_match,
>  		.pm		= &sun6i_mipi_csi2_pm_ops,
>  	},
>  };
> -- 
> 2.34.1
> 

-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: " Krzysztof Kozlowski
@ 2023-03-14 16:04   ` Paul Kocialkowski
  2023-03-14 19:52   ` Jernej Škrabec
  1 sibling, 0 replies; 71+ messages in thread
From: Paul Kocialkowski @ 2023-03-14 16:04 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Lad, Prabhakar, Ezequiel Garcia,
	Philipp Zabel, Sean Young, linux-media, linux-kernel,
	linux-amlogic, linux-arm-kernel, linux-tegra, linux-mediatek,
	linux-sunxi, linux-rockchip


[-- Attachment #1.1: Type: text/plain, Size: 1700 bytes --]

Hi Krzysztof,

On Sun 12 Mar 23, 14:13, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c:818:34: error: ‘sun8i_a83t_mipi_csi2_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Looks good to me:
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>

Thanks !

Paul

> ---
>  .../platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c  | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
> index cd2e92ae2293..1f0cc7b1ba47 100644
> --- a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
> +++ b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
> @@ -826,7 +826,7 @@ static struct platform_driver sun8i_a83t_mipi_csi2_platform_driver = {
>  	.remove	= sun8i_a83t_mipi_csi2_remove,
>  	.driver	= {
>  		.name		= SUN8I_A83T_MIPI_CSI2_NAME,
> -		.of_match_table	= of_match_ptr(sun8i_a83t_mipi_csi2_of_match),
> +		.of_match_table	= sun8i_a83t_mipi_csi2_of_match,
>  		.pm		= &sun8i_a83t_mipi_csi2_pm_ops,
>  	},
>  };
> -- 
> 2.34.1
> 

-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-03-13 11:46 ` [PATCH 01/28] media: cec: ch7322: " Hans Verkuil
@ 2023-03-14 16:31   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-14 16:31 UTC (permalink / raw)
  To: Hans Verkuil, Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 13/03/2023 12:46, Hans Verkuil wrote:
> On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
> 
> I assume you want to take this series, but if you prefer to have us do it, then
> just let me know.

I prefer if you to take it. Please grab it! :)

Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
       [not found]   ` <74ae8afe-c537-1714-77ec-8a80d8ddad69@xs4all.nl>
@ 2023-03-14 16:32     ` Krzysztof Kozlowski
  2023-03-14 16:45       ` Guenter Roeck
  0 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-14 16:32 UTC (permalink / raw)
  To: Hans Verkuil, Guenter Roeck
  Cc: Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 14/03/2023 09:34, Hans Verkuil wrote:
> On 13/03/2023 23:01, Guenter Roeck wrote:
>> On Sun, Mar 12, 2023 at 02:12:51PM +0100, Krzysztof Kozlowski wrote:
>>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
>>>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>
>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>>
>> FWIW: There is also
>> https://patches.linaro.org/project/linux-media/patch/20230215214724.3798917-1-linux@roeck-us.net/
> 
> I superseded that patch in patchwork in favor of this patch since this is part of
> a larger series.

I am personally fan of FIFO, so Guenter's patch should go in.

> 
> Krzysztof, please let me know if you will take this series yourself or want me to
> make a PR for it.

I prefer if you take entire patchset.


Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-03-14 16:32     ` Krzysztof Kozlowski
@ 2023-03-14 16:45       ` Guenter Roeck
  0 siblings, 0 replies; 71+ messages in thread
From: Guenter Roeck @ 2023-03-14 16:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Hans Verkuil
  Cc: Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 3/14/23 09:32, Krzysztof Kozlowski wrote:
> On 14/03/2023 09:34, Hans Verkuil wrote:
>> On 13/03/2023 23:01, Guenter Roeck wrote:
>>> On Sun, Mar 12, 2023 at 02:12:51PM +0100, Krzysztof Kozlowski wrote:
>>>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
>>>>
>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>>
>>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>>>
>>> FWIW: There is also
>>> https://patches.linaro.org/project/linux-media/patch/20230215214724.3798917-1-linux@roeck-us.net/
>>
>> I superseded that patch in patchwork in favor of this patch since this is part of
>> a larger series.
> 
> I am personally fan of FIFO, so Guenter's patch should go in.
> 

FWIW, I do not care either way, I just wanted to point out that this patch
_is_ both relevant and needed, and that it (or, rather, the original version)
has been reviewed and tested.

Thanks,
Guenter


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table Krzysztof Kozlowski
  2023-03-14 16:02   ` Paul Kocialkowski
@ 2023-03-14 19:51   ` Jernej Škrabec
  1 sibling, 0 replies; 71+ messages in thread
From: Jernej Škrabec @ 2023-03-14 19:51 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Samuel Holland, Lad, Prabhakar,
	Ezequiel Garcia, Philipp Zabel, Sean Young, linux-media,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip, Krzysztof Kozlowski
  Cc: Krzysztof Kozlowski

Dne nedelja, 12. marec 2023 ob 14:13:06 CET je Krzysztof Kozlowski napisal(a):
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c:401:34: error:
> ‘sun6i_csi_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

>  drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
> b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c index
> e3e6650181c8..187a2419da96 100644
> --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
> +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c
> @@ -429,7 +429,7 @@ static struct platform_driver sun6i_csi_platform_driver
> = { .remove	= sun6i_csi_remove,
>  	.driver	= {
>  		.name		= SUN6I_CSI_NAME,
> -		.of_match_table	= 
of_match_ptr(sun6i_csi_of_match),
> +		.of_match_table	= sun6i_csi_of_match,
>  		.pm		= &sun6i_csi_pm_ops,
>  	},
>  };





_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 17/28] media: platform: sun6i-mipi-csi2: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 17/28] media: platform: sun6i-mipi-csi2: " Krzysztof Kozlowski
  2023-03-14 16:04   ` Paul Kocialkowski
@ 2023-03-14 19:52   ` Jernej Škrabec
  1 sibling, 0 replies; 71+ messages in thread
From: Jernej Škrabec @ 2023-03-14 19:52 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Samuel Holland, Lad, Prabhakar,
	Ezequiel Garcia, Philipp Zabel, Sean Young, linux-media,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip, Krzysztof Kozlowski
  Cc: Krzysztof Kozlowski

Dne nedelja, 12. marec 2023 ob 14:13:07 CET je Krzysztof Kozlowski napisal(a):
> 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).  This
> also fixes !CONFIG_OF error:
> 
>   drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c:751:34:
> error: ‘sun6i_mipi_csi2_of_match’ defined but not used
> [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> 
> diff --git a/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
> b/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c index
> a220ce849b41..0851b6b4e1ff 100644
> --- a/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
> +++ b/drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c
> @@ -759,7 +759,7 @@ static struct platform_driver
> sun6i_mipi_csi2_platform_driver = { .remove	= sun6i_mipi_csi2_remove,
>  	.driver	= {
>  		.name		= SUN6I_MIPI_CSI2_NAME,
> -		.of_match_table	= 
of_match_ptr(sun6i_mipi_csi2_of_match),
> +		.of_match_table	= sun6i_mipi_csi2_of_match,
>  		.pm		= &sun6i_mipi_csi2_pm_ops,
>  	},
>  };





_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: drop of_match_ptr for ID table
  2023-03-12 13:13 ` [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: " Krzysztof Kozlowski
  2023-03-14 16:04   ` Paul Kocialkowski
@ 2023-03-14 19:52   ` Jernej Škrabec
  1 sibling, 0 replies; 71+ messages in thread
From: Jernej Škrabec @ 2023-03-14 19:52 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Samuel Holland, Lad, Prabhakar,
	Ezequiel Garcia, Philipp Zabel, Sean Young, linux-media,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip, Krzysztof Kozlowski
  Cc: Krzysztof Kozlowski

Dne nedelja, 12. marec 2023 ob 14:13:08 CET je Krzysztof Kozlowski napisal(a):
> 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).  This
> also fixes !CONFIG_OF error:
> 
>  
> drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c:81
> 8:34: error: ‘sun8i_a83t_mipi_csi2_of_match’ defined but not used
> [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c  | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> diff --git
> a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
> b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
> index cd2e92ae2293..1f0cc7b1ba47 100644
> ---
> a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
> +++
> b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c
> @@ -826,7 +826,7 @@ static struct platform_driver
> sun8i_a83t_mipi_csi2_platform_driver = { .remove	=
> sun8i_a83t_mipi_csi2_remove,
>  	.driver	= {
>  		.name		= SUN8I_A83T_MIPI_CSI2_NAME,
> -		.of_match_table	= 
of_match_ptr(sun8i_a83t_mipi_csi2_of_match),
> +		.of_match_table	= sun8i_a83t_mipi_csi2_of_match,
>  		.pm		= &sun8i_a83t_mipi_csi2_pm_ops,
>  	},
>  };





_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 20/28] media: platform: jpeg: always reference OF data
  2023-03-12 13:13 ` [PATCH 20/28] media: platform: jpeg: always reference OF data Krzysztof Kozlowski
@ 2023-03-21  8:11   ` Arnd Bergmann
  2023-03-21  8:21     ` Krzysztof Kozlowski
  2023-06-20 21:03   ` [PATCH v2 " Sakari Ailus
  1 sibling, 1 reply; 71+ messages in thread
From: Arnd Bergmann @ 2023-03-21  8:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Joe Tessler, Hans Verkuil,
	Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding, Jon Hunter,
	Manivannan Sadhasivam, Michael Tretter, Pengutronix Kernel Team,
	Jacopo Mondi, Kieran Bingham, Laurent Pinchart,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip,
	oushixiong

On Sun, Mar 12, 2023, at 14:13, Krzysztof Kozlowski wrote:
> 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).  This
> also fixes !CONFIG_OF error:
>
>   drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error: 
> ‘mtk8195_jpegdec_drvdata’ defined but not used 
> [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

I see now that we both submitted the same patch, but now Hans
merged a worse fix [1] without a changelog text.

    Arnd

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=4ae47770d57bff01

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 20/28] media: platform: jpeg: always reference OF data
  2023-03-21  8:11   ` Arnd Bergmann
@ 2023-03-21  8:21     ` Krzysztof Kozlowski
  2023-03-21  8:24       ` Arnd Bergmann
  0 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-21  8:21 UTC (permalink / raw)
  To: Arnd Bergmann, Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jon Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip,
	oushixiong

On 21/03/2023 09:11, Arnd Bergmann wrote:
> On Sun, Mar 12, 2023, at 14:13, Krzysztof Kozlowski wrote:
>> 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).  This
>> also fixes !CONFIG_OF error:
>>
>>   drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error: 
>> ‘mtk8195_jpegdec_drvdata’ defined but not used 
>> [-Werror=unused-const-variable=]
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> I see now that we both submitted the same patch, but now Hans

We as you and me? I cannot find your patch on lore:
https://lore.kernel.org/all/?q=f%3Aarnd%40arndb.de

> merged a worse fix [1] without a changelog text.
> 
>     Arnd
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=4ae47770d57bff01

Uh, I can rebase my patchset.

Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 20/28] media: platform: jpeg: always reference OF data
  2023-03-21  8:21     ` Krzysztof Kozlowski
@ 2023-03-21  8:24       ` Arnd Bergmann
  2023-03-21  8:26         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 71+ messages in thread
From: Arnd Bergmann @ 2023-03-21  8:24 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Joe Tessler, Hans Verkuil,
	Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding, Jon Hunter,
	Manivannan Sadhasivam, Michael Tretter, Pengutronix Kernel Team,
	Jacopo Mondi, Kieran Bingham, Laurent Pinchart,
	Niklas Söderlund, Rui Miguel Silva, Wenyou Yang, Bin Liu,
	Matthias Brugger, AngeloGioacchino Del Regno, Minghsiu Tsai,
	Houlong Wei, Andrew-CT Chen, Andrzej Pietrasiewicz,
	Jacek Anaszewski, Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip,
	oushixiong

On Tue, Mar 21, 2023, at 09:21, Krzysztof Kozlowski wrote:
> On 21/03/2023 09:11, Arnd Bergmann wrote:
>> On Sun, Mar 12, 2023, at 14:13, Krzysztof Kozlowski wrote:
>>> 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).  This
>>> also fixes !CONFIG_OF error:
>>>
>>>   drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error: 
>>> ‘mtk8195_jpegdec_drvdata’ defined but not used 
>>> [-Werror=unused-const-variable=]
>>>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> 
>> I see now that we both submitted the same patch, but now Hans
>
> We as you and me? I cannot find your patch on lore:
> https://lore.kernel.org/all/?q=f%3Aarnd%40arndb.de

This is the one that I sent back in January:

https://lore.kernel.org/all/20230117172644.3044265-1-arnd@kernel.org

      Arnd

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 20/28] media: platform: jpeg: always reference OF data
  2023-03-21  8:24       ` Arnd Bergmann
@ 2023-03-21  8:26         ` Krzysztof Kozlowski
  2023-05-25 13:16           ` Sakari Ailus
  0 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-21  8:26 UTC (permalink / raw)
  To: Arnd Bergmann, Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jon Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip,
	oushixiong

On 21/03/2023 09:24, Arnd Bergmann wrote:
> On Tue, Mar 21, 2023, at 09:21, Krzysztof Kozlowski wrote:
>> On 21/03/2023 09:11, Arnd Bergmann wrote:
>>> On Sun, Mar 12, 2023, at 14:13, Krzysztof Kozlowski wrote:
>>>> 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).  This
>>>> also fixes !CONFIG_OF error:
>>>>
>>>>   drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error: 
>>>> ‘mtk8195_jpegdec_drvdata’ defined but not used 
>>>> [-Werror=unused-const-variable=]
>>>>
>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>>
>>> I see now that we both submitted the same patch, but now Hans
>>
>> We as you and me? I cannot find your patch on lore:
>> https://lore.kernel.org/all/?q=f%3Aarnd%40arndb.de
> 
> This is the one that I sent back in January:
> 
> https://lore.kernel.org/all/20230117172644.3044265-1-arnd@kernel.org

Uh, that's from January! It's still waiting in Patchwork:
https://patchwork.linuxtv.org/project/linux-media/patch/20230117172644.3044265-1-arnd@kernel.org/


Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (28 preceding siblings ...)
  2023-03-13 22:01 ` Guenter Roeck
@ 2023-05-12 16:35 ` Krzysztof Kozlowski
  2023-05-13  9:57   ` Hans Verkuil
  2023-06-21 18:06 ` Guenter Roeck
  30 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-12 16:35 UTC (permalink / raw)
  To: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---

Hans, Sakari,

Can you pick up the patchset? There was positive feedback:
https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/

but it seems it was not applied.

Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-05-12 16:35 ` Krzysztof Kozlowski
@ 2023-05-13  9:57   ` Hans Verkuil
  2023-05-25 12:40     ` Sakari Ailus
  0 siblings, 1 reply; 71+ messages in thread
From: Hans Verkuil @ 2023-05-13  9:57 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Joe Tessler, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jonathan Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 12/05/2023 18:35, Krzysztof Kozlowski wrote:
> On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
> 
> Hans, Sakari,
> 
> Can you pick up the patchset? There was positive feedback:
> https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/
> 
> but it seems it was not applied.

I see it is delegated to Sakari in patchwork and marked Under Review, but I don't
see a corresponding pull request for this series.

Sakari, did something go wrong?

Regards,

	Hans

> 
> Best regards,
> Krzysztof
> 


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-05-13  9:57   ` Hans Verkuil
@ 2023-05-25 12:40     ` Sakari Ailus
  2023-05-25 13:19       ` Sakari Ailus
  0 siblings, 1 reply; 71+ messages in thread
From: Sakari Ailus @ 2023-05-25 12:40 UTC (permalink / raw)
  To: Hans Verkuil
  Cc: Krzysztof Kozlowski, Joe Tessler, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jonathan Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Hans,

On Sat, May 13, 2023 at 11:57:33AM +0200, Hans Verkuil wrote:
> On 12/05/2023 18:35, Krzysztof Kozlowski wrote:
> > On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
> >> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
> >>
> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >> ---
> > 
> > Hans, Sakari,
> > 
> > Can you pick up the patchset? There was positive feedback:
> > https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/
> > 
> > but it seems it was not applied.
> 
> I see it is delegated to Sakari in patchwork and marked Under Review, but I don't
> see a corresponding pull request for this series.
> 
> Sakari, did something go wrong?

I spotted this as Hans notified me in IRC, I wasn't cc'd. Apologies for
this --- I intended to take these but I think I must have missed something
important in the process. I'll take them now.

Thanks.

-- 
Kind regards,

Sakari Ailus

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 20/28] media: platform: jpeg: always reference OF data
  2023-03-21  8:26         ` Krzysztof Kozlowski
@ 2023-05-25 13:16           ` Sakari Ailus
  0 siblings, 0 replies; 71+ messages in thread
From: Sakari Ailus @ 2023-05-25 13:16 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Arnd Bergmann, Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jon Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip,
	oushixiong

On Tue, Mar 21, 2023 at 09:26:29AM +0100, Krzysztof Kozlowski wrote:
> On 21/03/2023 09:24, Arnd Bergmann wrote:
> > On Tue, Mar 21, 2023, at 09:21, Krzysztof Kozlowski wrote:
> >> On 21/03/2023 09:11, Arnd Bergmann wrote:
> >>> On Sun, Mar 12, 2023, at 14:13, Krzysztof Kozlowski wrote:
> >>>> 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).  This
> >>>> also fixes !CONFIG_OF error:
> >>>>
> >>>>   drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error: 
> >>>> ‘mtk8195_jpegdec_drvdata’ defined but not used 
> >>>> [-Werror=unused-const-variable=]
> >>>>
> >>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >>>
> >>> I see now that we both submitted the same patch, but now Hans
> >>
> >> We as you and me? I cannot find your patch on lore:
> >> https://lore.kernel.org/all/?q=f%3Aarnd%40arndb.de
> > 
> > This is the one that I sent back in January:
> > 
> > https://lore.kernel.org/all/20230117172644.3044265-1-arnd@kernel.org
> 
> Uh, that's from January! It's still waiting in Patchwork:
> https://patchwork.linuxtv.org/project/linux-media/patch/20230117172644.3044265-1-arnd@kernel.org/

Yes... this still makes sense, to remove of_match_ptr(). I rebased this,
resulting in:

From 230cfaabcd2d5a5f0bc74e113fe84f95028bcdc5 Mon Sep 17 00:00:00 2001
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Date: Sun, 12 Mar 2023 14:13:10 +0100
Subject: [PATCH v2 20/28] media: platform: jpeg: always reference OF data

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).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
[Sakari Ailus: Rebased on media tree master, reword commit message.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
index 0051f372a66cf..8bcbaa9658bac 100644
--- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
+++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
@@ -1866,7 +1866,6 @@ static const struct dev_pm_ops mtk_jpeg_pm_ops = {
 	SET_RUNTIME_PM_OPS(mtk_jpeg_pm_suspend, mtk_jpeg_pm_resume, NULL)
 };
 
-#if defined(CONFIG_OF)
 static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = {
 	.clks = mt8173_jpeg_dec_clocks,
 	.num_clks = ARRAY_SIZE(mt8173_jpeg_dec_clocks),
@@ -1949,14 +1948,13 @@ static const struct of_device_id mtk_jpeg_match[] = {
 };
 
 MODULE_DEVICE_TABLE(of, mtk_jpeg_match);
-#endif
 
 static struct platform_driver mtk_jpeg_driver = {
 	.probe = mtk_jpeg_probe,
 	.remove_new = mtk_jpeg_remove,
 	.driver = {
 		.name           = MTK_JPEG_NAME,
-		.of_match_table = of_match_ptr(mtk_jpeg_match),
+		.of_match_table = mtk_jpeg_match,
 		.pm             = &mtk_jpeg_pm_ops,
 	},
 };
-- 
2.30.2

-- 
Sakari Ailus

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-05-25 12:40     ` Sakari Ailus
@ 2023-05-25 13:19       ` Sakari Ailus
  2023-06-19 14:13         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 71+ messages in thread
From: Sakari Ailus @ 2023-05-25 13:19 UTC (permalink / raw)
  To: Hans Verkuil
  Cc: Krzysztof Kozlowski, Joe Tessler, Mauro Carvalho Chehab,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Thierry Reding, Jonathan Hunter, Manivannan Sadhasivam,
	Michael Tretter, Pengutronix Kernel Team, Jacopo Mondi,
	Kieran Bingham, Laurent Pinchart, Niklas Söderlund,
	Rui Miguel Silva, Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi folks,

On Thu, May 25, 2023 at 03:40:04PM +0300, Sakari Ailus wrote:
> Hi Hans,
> 
> On Sat, May 13, 2023 at 11:57:33AM +0200, Hans Verkuil wrote:
> > On 12/05/2023 18:35, Krzysztof Kozlowski wrote:
> > > On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
> > >> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
> > >>
> > >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > >> ---
> > > 
> > > Hans, Sakari,
> > > 
> > > Can you pick up the patchset? There was positive feedback:
> > > https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/
> > > 
> > > but it seems it was not applied.
> > 
> > I see it is delegated to Sakari in patchwork and marked Under Review, but I don't
> > see a corresponding pull request for this series.
> > 
> > Sakari, did something go wrong?
> 
> I spotted this as Hans notified me in IRC, I wasn't cc'd. Apologies for
> this --- I intended to take these but I think I must have missed something
> important in the process. I'll take them now.
> 
> Thanks.

This no longer applied cleanly. Mostly there was fuzz near .of_match_table
changes as probe_new (and remove_new?) changes have been recently merged.
There were other issues as well, I marked a few patches in the set "not
applicable" as other patches had already done equivalent changes earlier.

There were substance-changing changes in the 20th patch, replied to the
disuccsion there.

I've pushed the result here and intend to send PR to Mauro soon if there
are no issues:

<URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=of-match-ptr>

-- 
Kind regards,

Sakari Ailus

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-05-25 13:19       ` Sakari Ailus
@ 2023-06-19 14:13         ` Krzysztof Kozlowski
  2023-07-13  6:46           ` Krzysztof Kozlowski
  0 siblings, 1 reply; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-19 14:13 UTC (permalink / raw)
  To: Sakari Ailus, Hans Verkuil
  Cc: Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 25/05/2023 15:19, Sakari Ailus wrote:
> Hi folks,
> 
> On Thu, May 25, 2023 at 03:40:04PM +0300, Sakari Ailus wrote:
>> Hi Hans,
>>
>> On Sat, May 13, 2023 at 11:57:33AM +0200, Hans Verkuil wrote:
>>> On 12/05/2023 18:35, Krzysztof Kozlowski wrote:
>>>> On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
>>>>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
>>>>>
>>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>>>> ---
>>>>
>>>> Hans, Sakari,
>>>>
>>>> Can you pick up the patchset? There was positive feedback:
>>>> https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/
>>>>
>>>> but it seems it was not applied.
>>>
>>> I see it is delegated to Sakari in patchwork and marked Under Review, but I don't
>>> see a corresponding pull request for this series.
>>>
>>> Sakari, did something go wrong?
>>
>> I spotted this as Hans notified me in IRC, I wasn't cc'd. Apologies for
>> this --- I intended to take these but I think I must have missed something
>> important in the process. I'll take them now.
>>
>> Thanks.
> 
> This no longer applied cleanly. Mostly there was fuzz near .of_match_table
> changes as probe_new (and remove_new?) changes have been recently merged.
> There were other issues as well, I marked a few patches in the set "not
> applicable" as other patches had already done equivalent changes earlier.
> 
> There were substance-changing changes in the 20th patch, replied to the
> disuccsion there.
> 
> I've pushed the result here and intend to send PR to Mauro soon if there
> are no issues:
> 
> <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=of-match-ptr>

One month later, I still don't see this set in the linux-next.  What's
happening here?

Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH v2 20/28] media: platform: jpeg: always reference OF data
  2023-03-12 13:13 ` [PATCH 20/28] media: platform: jpeg: always reference OF data Krzysztof Kozlowski
  2023-03-21  8:11   ` Arnd Bergmann
@ 2023-06-20 21:03   ` Sakari Ailus
  1 sibling, 0 replies; 71+ messages in thread
From: Sakari Ailus @ 2023-06-20 21:03 UTC (permalink / raw)
  To: linux-media
  Cc: Krzysztof Kozlowski, Joe Tessler, Hans Verkuil,
	Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-kernel, linux-amlogic, linux-arm-kernel, linux-tegra,
	linux-mediatek, linux-sunxi, linux-rockchip

From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

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).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
[Sakari Ailus: Rebased on media tree master, reword commit message,
	       drop additional #if defined(CONFIG_OF)/#endif's.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c   | 6 +-----
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c | 4 +---
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c | 4 +---
 3 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
index 4768156181c99..40cb3cb87ba17 100644
--- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
+++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
@@ -28,7 +28,6 @@
 #include "mtk_jpeg_core.h"
 #include "mtk_jpeg_dec_parse.h"
 
-#if defined(CONFIG_OF)
 static struct mtk_jpeg_fmt mtk_jpeg_enc_formats[] = {
 	{
 		.fourcc		= V4L2_PIX_FMT_JPEG,
@@ -102,7 +101,6 @@ static struct mtk_jpeg_fmt mtk_jpeg_dec_formats[] = {
 		.flags		= MTK_JPEG_FMT_FLAG_CAPTURE,
 	},
 };
-#endif
 
 #define MTK_JPEG_ENC_NUM_FORMATS ARRAY_SIZE(mtk_jpeg_enc_formats)
 #define MTK_JPEG_DEC_NUM_FORMATS ARRAY_SIZE(mtk_jpeg_dec_formats)
@@ -1455,7 +1453,6 @@ static const struct dev_pm_ops mtk_jpeg_pm_ops = {
 	SET_RUNTIME_PM_OPS(mtk_jpeg_pm_suspend, mtk_jpeg_pm_resume, NULL)
 };
 
-#if defined(CONFIG_OF)
 static int mtk_jpegenc_get_hw(struct mtk_jpeg_ctx *ctx)
 {
 	struct mtk_jpegenc_comp_dev *comp_jpeg;
@@ -1951,14 +1948,13 @@ static const struct of_device_id mtk_jpeg_match[] = {
 };
 
 MODULE_DEVICE_TABLE(of, mtk_jpeg_match);
-#endif
 
 static struct platform_driver mtk_jpeg_driver = {
 	.probe = mtk_jpeg_probe,
 	.remove_new = mtk_jpeg_remove,
 	.driver = {
 		.name           = MTK_JPEG_NAME,
-		.of_match_table = of_match_ptr(mtk_jpeg_match),
+		.of_match_table = mtk_jpeg_match,
 		.pm             = &mtk_jpeg_pm_ops,
 	},
 };
diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c
index 869068fac5e2f..baa7be58ce691 100644
--- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c
+++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c
@@ -39,7 +39,6 @@ enum mtk_jpeg_color {
 	MTK_JPEG_COLOR_400		= 0x00110000
 };
 
-#if defined(CONFIG_OF)
 static const struct of_device_id mtk_jpegdec_hw_ids[] = {
 	{
 		.compatible = "mediatek,mt8195-jpgdec-hw",
@@ -47,7 +46,6 @@ static const struct of_device_id mtk_jpegdec_hw_ids[] = {
 	{},
 };
 MODULE_DEVICE_TABLE(of, mtk_jpegdec_hw_ids);
-#endif
 
 static inline int mtk_jpeg_verify_align(u32 val, int align, u32 reg)
 {
@@ -653,7 +651,7 @@ static struct platform_driver mtk_jpegdec_hw_driver = {
 	.probe = mtk_jpegdec_hw_probe,
 	.driver = {
 		.name = "mtk-jpegdec-hw",
-		.of_match_table = of_match_ptr(mtk_jpegdec_hw_ids),
+		.of_match_table = mtk_jpegdec_hw_ids,
 	},
 };
 
diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c
index 71e85b4bbf127..244018365b6f1 100644
--- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c
+++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c
@@ -46,7 +46,6 @@ static const struct mtk_jpeg_enc_qlt mtk_jpeg_enc_quality[] = {
 	{.quality_param = 97, .hardware_value = JPEG_ENC_QUALITY_Q97},
 };
 
-#if defined(CONFIG_OF)
 static const struct of_device_id mtk_jpegenc_drv_ids[] = {
 	{
 		.compatible = "mediatek,mt8195-jpgenc-hw",
@@ -54,7 +53,6 @@ static const struct of_device_id mtk_jpegenc_drv_ids[] = {
 	{},
 };
 MODULE_DEVICE_TABLE(of, mtk_jpegenc_drv_ids);
-#endif
 
 void mtk_jpeg_enc_reset(void __iomem *base)
 {
@@ -377,7 +375,7 @@ static struct platform_driver mtk_jpegenc_hw_driver = {
 	.probe = mtk_jpegenc_hw_probe,
 	.driver = {
 		.name = "mtk-jpegenc-hw",
-		.of_match_table = of_match_ptr(mtk_jpegenc_drv_ids),
+		.of_match_table = mtk_jpegenc_drv_ids,
 	},
 };
 
-- 
2.39.2


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
                   ` (29 preceding siblings ...)
  2023-05-12 16:35 ` Krzysztof Kozlowski
@ 2023-06-21 18:06 ` Guenter Roeck
  30 siblings, 0 replies; 71+ messages in thread
From: Guenter Roeck @ 2023-06-21 18:06 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On Sun, Mar 12, 2023 at 02:12:51PM +0100, Krzysztof Kozlowski wrote:
> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

What happened wit hthis patch ? I still don't see it applied.

FWIW:

Reviewed-and-tested-by: Guenter Roeck <linux@roeck-us.net>

Thanks,
Guenter

> ---
>  drivers/media/cec/i2c/ch7322.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/cec/i2c/ch7322.c b/drivers/media/cec/i2c/ch7322.c
> index 34fad7123704..3c6e6496a001 100644
> --- a/drivers/media/cec/i2c/ch7322.c
> +++ b/drivers/media/cec/i2c/ch7322.c
> @@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match);
>  static struct i2c_driver ch7322_i2c_driver = {
>  	.driver = {
>  		.name = "ch7322",
> -		.of_match_table = of_match_ptr(ch7322_of_match),
> +		.of_match_table = ch7322_of_match,
>  	},
>  	.probe_new	= ch7322_probe,
>  	.remove		= ch7322_remove,
> -- 
> 2.34.1
> 

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-06-19 14:13         ` Krzysztof Kozlowski
@ 2023-07-13  6:46           ` Krzysztof Kozlowski
  2023-07-13  7:07             ` Hans Verkuil
  2023-07-25 10:51             ` Sakari Ailus
  0 siblings, 2 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-13  6:46 UTC (permalink / raw)
  To: Sakari Ailus, Hans Verkuil
  Cc: Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 19/06/2023 16:13, Krzysztof Kozlowski wrote:
> On 25/05/2023 15:19, Sakari Ailus wrote:
>> Hi folks,
>>
>> On Thu, May 25, 2023 at 03:40:04PM +0300, Sakari Ailus wrote:
>>> Hi Hans,
>>>
>>> On Sat, May 13, 2023 at 11:57:33AM +0200, Hans Verkuil wrote:
>>>> On 12/05/2023 18:35, Krzysztof Kozlowski wrote:
>>>>> On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
>>>>>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
>>>>>>
>>>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>>>>> ---
>>>>>
>>>>> Hans, Sakari,
>>>>>
>>>>> Can you pick up the patchset? There was positive feedback:
>>>>> https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/
>>>>>
>>>>> but it seems it was not applied.
>>>>
>>>> I see it is delegated to Sakari in patchwork and marked Under Review, but I don't
>>>> see a corresponding pull request for this series.
>>>>
>>>> Sakari, did something go wrong?
>>>
>>> I spotted this as Hans notified me in IRC, I wasn't cc'd. Apologies for
>>> this --- I intended to take these but I think I must have missed something
>>> important in the process. I'll take them now.
>>>
>>> Thanks.
>>
>> This no longer applied cleanly. Mostly there was fuzz near .of_match_table
>> changes as probe_new (and remove_new?) changes have been recently merged.
>> There were other issues as well, I marked a few patches in the set "not
>> applicable" as other patches had already done equivalent changes earlier.
>>
>> There were substance-changing changes in the 20th patch, replied to the
>> disuccsion there.
>>
>> I've pushed the result here and intend to send PR to Mauro soon if there
>> are no issues:
>>
>> <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=of-match-ptr>
> 
> One month later, I still don't see this set in the linux-next.  What's
> happening here?
> 

I don't think this was merged in v6.5-rc1. It's not in linux-next,
either. Another month passed...

Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-07-13  6:46           ` Krzysztof Kozlowski
@ 2023-07-13  7:07             ` Hans Verkuil
  2023-07-25 10:51             ` Sakari Ailus
  1 sibling, 0 replies; 71+ messages in thread
From: Hans Verkuil @ 2023-07-13  7:07 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Sakari Ailus
  Cc: Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 13/07/2023 08:46, Krzysztof Kozlowski wrote:
> On 19/06/2023 16:13, Krzysztof Kozlowski wrote:
>> On 25/05/2023 15:19, Sakari Ailus wrote:
>>> Hi folks,
>>>
>>> On Thu, May 25, 2023 at 03:40:04PM +0300, Sakari Ailus wrote:
>>>> Hi Hans,
>>>>
>>>> On Sat, May 13, 2023 at 11:57:33AM +0200, Hans Verkuil wrote:
>>>>> On 12/05/2023 18:35, Krzysztof Kozlowski wrote:
>>>>>> On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
>>>>>>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
>>>>>>>
>>>>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>>>>>> ---
>>>>>>
>>>>>> Hans, Sakari,
>>>>>>
>>>>>> Can you pick up the patchset? There was positive feedback:
>>>>>> https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/
>>>>>>
>>>>>> but it seems it was not applied.
>>>>>
>>>>> I see it is delegated to Sakari in patchwork and marked Under Review, but I don't
>>>>> see a corresponding pull request for this series.
>>>>>
>>>>> Sakari, did something go wrong?
>>>>
>>>> I spotted this as Hans notified me in IRC, I wasn't cc'd. Apologies for
>>>> this --- I intended to take these but I think I must have missed something
>>>> important in the process. I'll take them now.
>>>>
>>>> Thanks.
>>>
>>> This no longer applied cleanly. Mostly there was fuzz near .of_match_table
>>> changes as probe_new (and remove_new?) changes have been recently merged.
>>> There were other issues as well, I marked a few patches in the set "not
>>> applicable" as other patches had already done equivalent changes earlier.
>>>
>>> There were substance-changing changes in the 20th patch, replied to the
>>> disuccsion there.
>>>
>>> I've pushed the result here and intend to send PR to Mauro soon if there
>>> are no issues:
>>>
>>> <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=of-match-ptr>
>>
>> One month later, I still don't see this set in the linux-next.  What's
>> happening here?
>>
> 
> I don't think this was merged in v6.5-rc1. It's not in linux-next,
> either. Another month passed...

I'm really hopeful it will be merged very soon. As you may have noticed (!) we
have problems with maintaining the media subsystem (too many patches, not enough
maintainers). We had a meeting about that a few weeks ago and are working on
it.

The core problem for this particular series was that the PR containing this series
was posted much too late (as in three months too late!), and it came in too late
for 6.5.

Regards,

	Hans

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-07-13  6:46           ` Krzysztof Kozlowski
  2023-07-13  7:07             ` Hans Verkuil
@ 2023-07-25 10:51             ` Sakari Ailus
  2023-07-26  8:20               ` Krzysztof Kozlowski
  1 sibling, 1 reply; 71+ messages in thread
From: Sakari Ailus @ 2023-07-25 10:51 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Hans Verkuil, Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

Hi Krzysztof,

On Thu, Jul 13, 2023 at 08:46:58AM +0200, Krzysztof Kozlowski wrote:
> On 19/06/2023 16:13, Krzysztof Kozlowski wrote:
> > On 25/05/2023 15:19, Sakari Ailus wrote:
> >> Hi folks,
> >>
> >> On Thu, May 25, 2023 at 03:40:04PM +0300, Sakari Ailus wrote:
> >>> Hi Hans,
> >>>
> >>> On Sat, May 13, 2023 at 11:57:33AM +0200, Hans Verkuil wrote:
> >>>> On 12/05/2023 18:35, Krzysztof Kozlowski wrote:
> >>>>> On 12/03/2023 14:12, Krzysztof Kozlowski wrote:
> >>>>>> 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/media/cec/i2c/ch7322.c:583:34: error: ‘ch7322_of_match’ defined but not used [-Werror=unused-const-variable=]
> >>>>>>
> >>>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >>>>>> ---
> >>>>>
> >>>>> Hans, Sakari,
> >>>>>
> >>>>> Can you pick up the patchset? There was positive feedback:
> >>>>> https://patchwork.linuxtv.org/project/linux-media/patch/20230312131318.351173-1-krzysztof.kozlowski@linaro.org/
> >>>>>
> >>>>> but it seems it was not applied.
> >>>>
> >>>> I see it is delegated to Sakari in patchwork and marked Under Review, but I don't
> >>>> see a corresponding pull request for this series.
> >>>>
> >>>> Sakari, did something go wrong?
> >>>
> >>> I spotted this as Hans notified me in IRC, I wasn't cc'd. Apologies for
> >>> this --- I intended to take these but I think I must have missed something
> >>> important in the process. I'll take them now.
> >>>
> >>> Thanks.
> >>
> >> This no longer applied cleanly. Mostly there was fuzz near .of_match_table
> >> changes as probe_new (and remove_new?) changes have been recently merged.
> >> There were other issues as well, I marked a few patches in the set "not
> >> applicable" as other patches had already done equivalent changes earlier.
> >>
> >> There were substance-changing changes in the 20th patch, replied to the
> >> disuccsion there.
> >>
> >> I've pushed the result here and intend to send PR to Mauro soon if there
> >> are no issues:
> >>
> >> <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=of-match-ptr>
> > 
> > One month later, I still don't see this set in the linux-next.  What's
> > happening here?
> > 
> 
> I don't think this was merged in v6.5-rc1. It's not in linux-next,
> either. Another month passed...

These are now in the media-stage tree
<URL:https://git.linuxtv.org/media_stage.git/log/>. Assuming nothing goes
wrong, these should end up in Linus's tree for 6.6.

The issues related to media tree maintenance are being addressed as we're
changing the process how the tree is maintained. The patches will
eventually get in still, also expect this to improve in the future.

-- 
Regards,

Sakari Ailus

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table
  2023-07-25 10:51             ` Sakari Ailus
@ 2023-07-26  8:20               ` Krzysztof Kozlowski
  0 siblings, 0 replies; 71+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-26  8:20 UTC (permalink / raw)
  To: Sakari Ailus
  Cc: Hans Verkuil, Joe Tessler, Mauro Carvalho Chehab, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Thierry Reding,
	Jonathan Hunter, Manivannan Sadhasivam, Michael Tretter,
	Pengutronix Kernel Team, Jacopo Mondi, Kieran Bingham,
	Laurent Pinchart, Niklas Söderlund, Rui Miguel Silva,
	Wenyou Yang, Bin Liu, Matthias Brugger,
	AngeloGioacchino Del Regno, Minghsiu Tsai, Houlong Wei,
	Andrew-CT Chen, Andrzej Pietrasiewicz, Jacek Anaszewski,
	Sylwester Nawrocki, Patrice Chotard, Yong Deng,
	Paul Kocialkowski, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Lad, Prabhakar, Ezequiel Garcia, Philipp Zabel, Sean Young,
	linux-media, linux-kernel, linux-amlogic, linux-arm-kernel,
	linux-tegra, linux-mediatek, linux-sunxi, linux-rockchip

On 25/07/2023 12:51, Sakari Ailus wrote:
>>
>> I don't think this was merged in v6.5-rc1. It's not in linux-next,
>> either. Another month passed...
> 
> These are now in the media-stage tree
> <URL:https://git.linuxtv.org/media_stage.git/log/>. Assuming nothing goes
> wrong, these should end up in Linus's tree for 6.6.

Great, thank you!

Best regards,
Krzysztof


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

end of thread, other threads:[~2023-07-26  8:21 UTC | newest]

Thread overview: 71+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-12 13:12 [PATCH 01/28] media: cec: ch7322: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-12 13:12 ` [PATCH 02/28] media: cec: meson: " Krzysztof Kozlowski
2023-03-12 20:22   ` Martin Blumenstingl
2023-03-13 11:46   ` Hans Verkuil
2023-03-12 13:12 ` [PATCH 03/28] media: cec: tegra: " Krzysztof Kozlowski
2023-03-13 11:46   ` Hans Verkuil
2023-03-12 13:12 ` [PATCH 04/28] media: rc: gpio-ir-recv: " Krzysztof Kozlowski
2023-03-13 14:45   ` Sean Young
2023-03-12 13:12 ` [PATCH 05/28] media: rc: gpio-ir-tx: " Krzysztof Kozlowski
2023-03-13 14:45   ` Sean Young
2023-03-12 13:12 ` [PATCH 06/28] media: rc: ir-rx51: " Krzysztof Kozlowski
2023-03-13 14:47   ` Sean Young
2023-03-12 13:12 ` [PATCH 07/28] media: platform: allegro-dvt: " Krzysztof Kozlowski
2023-03-13 14:56   ` Michael Tretter
2023-03-12 13:12 ` [PATCH 08/28] media: platform: intel: pxa: " Krzysztof Kozlowski
2023-03-12 13:12 ` [PATCH 09/28] media: platform: samsung: s5p-jpeg: " Krzysztof Kozlowski
2023-03-13 17:08   ` Andrzej Pietrasiewicz
2023-03-12 13:13 ` [PATCH 10/28] media: platform: sti: " Krzysztof Kozlowski
2023-03-12 13:13 ` [PATCH 11/28] media: platform: ti: am437x: " Krzysztof Kozlowski
2023-03-12 13:41   ` Laurent Pinchart
2023-03-13 20:53   ` Lad, Prabhakar
2023-03-12 13:13 ` [PATCH 12/28] media: platform: verisilicon: " Krzysztof Kozlowski
2023-03-12 13:13 ` [PATCH 13/28] media: platform: marvell: " Krzysztof Kozlowski
2023-03-12 13:13 ` [PATCH 14/28] media: platform: mdp3: " Krzysztof Kozlowski
2023-03-12 13:13 ` [PATCH 15/28] media: platform: mdp3: mark OF related data as maybe unused Krzysztof Kozlowski
2023-03-12 13:13 ` [PATCH 16/28] media: platform: sun6i-csi: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-14 16:02   ` Paul Kocialkowski
2023-03-14 19:51   ` Jernej Škrabec
2023-03-12 13:13 ` [PATCH 17/28] media: platform: sun6i-mipi-csi2: " Krzysztof Kozlowski
2023-03-14 16:04   ` Paul Kocialkowski
2023-03-14 19:52   ` Jernej Škrabec
2023-03-12 13:13 ` [PATCH 18/28] media: platform: sun8i-a83t-mipi-csi2: " Krzysztof Kozlowski
2023-03-14 16:04   ` Paul Kocialkowski
2023-03-14 19:52   ` Jernej Škrabec
2023-03-12 13:13 ` [PATCH 19/28] media: platform: mdp: mark OF related data as maybe unused Krzysztof Kozlowski
2023-03-12 13:13 ` [PATCH 20/28] media: platform: jpeg: always reference OF data Krzysztof Kozlowski
2023-03-21  8:11   ` Arnd Bergmann
2023-03-21  8:21     ` Krzysztof Kozlowski
2023-03-21  8:24       ` Arnd Bergmann
2023-03-21  8:26         ` Krzysztof Kozlowski
2023-05-25 13:16           ` Sakari Ailus
2023-06-20 21:03   ` [PATCH v2 " Sakari Ailus
2023-03-12 13:13 ` [PATCH 21/28] media: i2c: isl7998x: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-12 13:13 ` [PATCH 22/28] media: i2c: mt9m111: " Krzysztof Kozlowski
2023-03-12 13:43   ` Laurent Pinchart
2023-03-12 13:13 ` [PATCH 23/28] media: i2c: ov2640: " Krzysztof Kozlowski
2023-03-12 13:44   ` Laurent Pinchart
2023-03-12 13:13 ` [PATCH 24/28] media: i2c: ov2680: " Krzysztof Kozlowski
2023-03-12 13:44   ` Laurent Pinchart
2023-03-12 13:13 ` [PATCH 25/28] media: i2c: ov7740: " Krzysztof Kozlowski
2023-03-12 13:44   ` Laurent Pinchart
2023-03-12 13:13 ` [PATCH 26/28] media: i2c: imx290: " Krzysztof Kozlowski
2023-03-12 13:44   ` Laurent Pinchart
2023-03-12 13:13 ` [PATCH 27/28] media: i2c: max9286: " Krzysztof Kozlowski
2023-03-12 13:45   ` Laurent Pinchart
2023-03-12 13:13 ` [PATCH 28/28] media: dvb: mn88443x: " Krzysztof Kozlowski
2023-03-13 11:46 ` [PATCH 01/28] media: cec: ch7322: " Hans Verkuil
2023-03-14 16:31   ` Krzysztof Kozlowski
2023-03-13 22:01 ` Guenter Roeck
     [not found]   ` <74ae8afe-c537-1714-77ec-8a80d8ddad69@xs4all.nl>
2023-03-14 16:32     ` Krzysztof Kozlowski
2023-03-14 16:45       ` Guenter Roeck
2023-05-12 16:35 ` Krzysztof Kozlowski
2023-05-13  9:57   ` Hans Verkuil
2023-05-25 12:40     ` Sakari Ailus
2023-05-25 13:19       ` Sakari Ailus
2023-06-19 14:13         ` Krzysztof Kozlowski
2023-07-13  6:46           ` Krzysztof Kozlowski
2023-07-13  7:07             ` Hans Verkuil
2023-07-25 10:51             ` Sakari Ailus
2023-07-26  8:20               ` Krzysztof Kozlowski
2023-06-21 18:06 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).