public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] media: i2c: ds90ub960: Remove of_node assignment
@ 2025-03-12 17:41 Andy Shevchenko
  2025-04-03 11:01 ` Tomi Valkeinen
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2025-03-12 17:41 UTC (permalink / raw)
  To: Sakari Ailus, Mauro Carvalho Chehab, Tomi Valkeinen, Jai Luthra,
	linux-media, linux-kernel
  Cc: Mauro Carvalho Chehab, Andy Shevchenko

Remove of_node assignment which duplicates fwnode in struct i2c_board_info.
In general drivers must not set both, it's quite confusing. The I²C core
will consider fwnode with a priority and of_node is subject to remove from
above mentioned data structure.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/media/i2c/ds90ub960.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c
index 5dde8452739b..5afdbbad9ff4 100644
--- a/drivers/media/i2c/ds90ub960.c
+++ b/drivers/media/i2c/ds90ub960.c
@@ -1682,7 +1682,6 @@ static int ub960_rxport_add_serializer(struct ub960_data *priv, u8 nport)
 	struct device *dev = &priv->client->dev;
 	struct ds90ub9xx_platform_data *ser_pdata = &rxport->ser.pdata;
 	struct i2c_board_info ser_info = {
-		.of_node = to_of_node(rxport->ser.fwnode),
 		.fwnode = rxport->ser.fwnode,
 		.platform_data = ser_pdata,
 	};
-- 
2.47.2


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

end of thread, other threads:[~2025-04-07 15:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12 17:41 [PATCH v1 1/1] media: i2c: ds90ub960: Remove of_node assignment Andy Shevchenko
2025-04-03 11:01 ` Tomi Valkeinen
2025-04-03 11:12   ` Andy Shevchenko
2025-04-07 15:51     ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox