Skip to content

Commit adc8d12

Browse files
andy-shevWolfram Sang
authored andcommitted
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 <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent df6d727 commit adc8d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/i2c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ static inline bool i2c_detect_slave_mode(struct device *dev) { return false; }
405405
* @addr: stored in i2c_client.addr
406406
* @dev_name: Overrides the default <busnr>-<addr> dev_name if set
407407
* @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
409409
* @fwnode: device node supplied by the platform firmware
410410
* @swnode: software node for the device
411411
* @resources: resources associated with the device

0 commit comments

Comments
 (0)