Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: i2c: ds90ub960: Remove of_node assignment

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.

Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

authored by

Andy Shevchenko and committed by
Wolfram Sang
81e68e2d adc8d120

-1
-1
drivers/media/i2c/ds90ub960.c
··· 1682 1682 struct device *dev = &priv->client->dev; 1683 1683 struct ds90ub9xx_platform_data *ser_pdata = &rxport->ser.pdata; 1684 1684 struct i2c_board_info ser_info = { 1685 - .of_node = to_of_node(rxport->ser.fwnode), 1686 1685 .fwnode = rxport->ser.fwnode, 1687 1686 .platform_data = ser_pdata, 1688 1687 };