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

i2c: core: Deprecate of_node in struct i2c_board_info

Two members of the same or quite similar semantics is quite confusing
to begin with. Moreover, fwnode covers all possible firmware descriptions
that Linux kernel supports. Deprecate of_node in struct i2c_board_info,
so users will be warned and in the future there is a plan to convert
the users and remove it completely.

Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
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>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

authored by

Andy Shevchenko and committed by
Wolfram Sang
adc8d120 df6d7277

+1 -1
+1 -1
include/linux/i2c.h
··· 405 405 * @addr: stored in i2c_client.addr 406 406 * @dev_name: Overrides the default <busnr>-<addr> dev_name if set 407 407 * @platform_data: stored in i2c_client.dev.platform_data 408 - * @of_node: pointer to OpenFirmware device node 408 + * @of_node: **DEPRECATED** - use @fwnode for this 409 409 * @fwnode: device node supplied by the platform firmware 410 410 * @swnode: software node for the device 411 411 * @resources: resources associated with the device