diff options
| author | Vadim Pasternak <vadimp@mellanox.com> | 2018-01-22 21:43:27 -0500 |
|---|---|---|
| committer | Darren Hart (VMware) <dvhart@infradead.org> | 2018-01-31 13:36:49 -0500 |
| commit | 3d838f5514ca5318f46bdb5b3f997cee66091695 (patch) | |
| tree | 50c4992eec82a92c48212f161ce3eae17de5e57a /include/linux/platform_data | |
| parent | 4abdbfa7331ef5a79a6f89d2d8061ac085878756 (diff) | |
platform/mellanox: Rename i2c bus to nr
Use Linux convention of nr instead of bus for i2c adapter number.
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
[dvhart: refactored commit into smaller functional changes]
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/mlxreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h index 8dcbb8e21ee2..ffbcb7886c62 100644 --- a/include/linux/platform_data/mlxreg.h +++ b/include/linux/platform_data/mlxreg.h | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | * @adapter: I2C device adapter; | 39 | * @adapter: I2C device adapter; |
| 40 | * @client: I2C device client; | 40 | * @client: I2C device client; |
| 41 | * @brdinfo: device board information; | 41 | * @brdinfo: device board information; |
| 42 | * @bus: I2C bus, where device is attached; | 42 | * @nr: I2C device adapter number, to which device is to be attached; |
| 43 | * | 43 | * |
| 44 | * Structure represents I2C hotplug device static data (board topology) and | 44 | * Structure represents I2C hotplug device static data (board topology) and |
| 45 | * dynamic data (related kernel objects handles). | 45 | * dynamic data (related kernel objects handles). |
| @@ -48,7 +48,7 @@ struct mlxreg_hotplug_device { | |||
| 48 | struct i2c_adapter *adapter; | 48 | struct i2c_adapter *adapter; |
| 49 | struct i2c_client *client; | 49 | struct i2c_client *client; |
| 50 | struct i2c_board_info brdinfo; | 50 | struct i2c_board_info brdinfo; |
| 51 | u16 bus; | 51 | int nr; |
| 52 | }; | 52 | }; |
| 53 | 53 | ||
| 54 | /** | 54 | /** |
