OSDN Git Service

mlxsw: i2c: Modify input parameter name in initialization API
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 3 Mar 2019 09:12:14 +0000 (09:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 06:23:00 +0000 (22:23 -0800)
Change input parameter name "resource" to "res" in mlxsw_i2c_init() in
order to align it with mlxsw_pci_init().

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/i2c.c

index 68a23b2..eb46e0c 100644 (file)
@@ -414,7 +414,7 @@ static int mlxsw_i2c_skb_transmit(void *bus_priv, struct sk_buff *skb,
 static int
 mlxsw_i2c_init(void *bus_priv, struct mlxsw_core *mlxsw_core,
               const struct mlxsw_config_profile *profile,
-              struct mlxsw_res *resources)
+              struct mlxsw_res *res)
 {
        struct mlxsw_i2c *mlxsw_i2c = bus_priv;