net/mlx5: Fix some spelling mistakes
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 28 May 2017 12:24:17 +0000 (15:24 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 21:12:40 +0000 (00:12 +0300)
Fixed few places where endianness was misspelled and
one spot whwere output was:

CHECK: 'endianess' may be misspelled - perhaps 'endianness'?
CHECK: 'ouput' may be misspelled - perhaps 'output'?

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/mlx5_ifc.h

index 852a6a75db9865cbed49307f5d6fab7a0f77c7a3..2ab505d1e8e3ee6a671497858319a21e54ca29bf 100644 (file)
@@ -439,7 +439,7 @@ static void get_atomic_caps(struct mlx5_ib_dev *dev,
        u8 atomic_operations = MLX5_CAP_ATOMIC(dev->mdev, atomic_operations);
        u8 atomic_size_qp = MLX5_CAP_ATOMIC(dev->mdev, atomic_size_qp);
        u8 atomic_req_8B_endianness_mode =
-               MLX5_CAP_ATOMIC(dev->mdev, atomic_req_8B_endianess_mode);
+               MLX5_CAP_ATOMIC(dev->mdev, atomic_req_8B_endianness_mode);
 
        /* Check if HW supports 8 bytes standard atomic operations and capable
         * of host endianness respond
index 10d282841f5be16c0957c72111c68baf6a452ca9..46efaab9da466108e06f29d66c3a9272173ea810 100644 (file)
@@ -874,7 +874,7 @@ static const char *deliv_status_to_str(u8 status)
        case MLX5_CMD_DELIVERY_STAT_IN_LENGTH_ERR:
                return "command input length error";
        case MLX5_CMD_DELIVERY_STAT_OUT_LENGTH_ERR:
-               return "command ouput length error";
+               return "command output length error";
        case MLX5_CMD_DELIVERY_STAT_RES_FLD_NOT_CLR_ERR:
                return "reserved fields not cleared";
        case MLX5_CMD_DELIVERY_STAT_CMD_DESCR_ERR:
index dc890944c4eade0d07a9f369e7e17cabb93eddf9..3319968ed78919164a656c29c9323ee9ad36a15e 100644 (file)
@@ -356,7 +356,7 @@ static void mlx5_disable_msix(struct mlx5_core_dev *dev)
        kfree(priv->msix_arr);
 }
 
-struct mlx5_reg_host_endianess {
+struct mlx5_reg_host_endianness {
        u8      he;
        u8      rsvd[15];
 };
@@ -475,7 +475,7 @@ static int handle_hca_cap_atomic(struct mlx5_core_dev *dev)
 
        req_endianness =
                MLX5_CAP_ATOMIC(dev,
-                               supported_atomic_req_8B_endianess_mode_1);
+                               supported_atomic_req_8B_endianness_mode_1);
 
        if (req_endianness != MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS)
                return 0;
@@ -487,7 +487,7 @@ static int handle_hca_cap_atomic(struct mlx5_core_dev *dev)
        set_hca_cap = MLX5_ADDR_OF(set_hca_cap_in, set_ctx, capability);
 
        /* Set requestor to host endianness */
-       MLX5_SET(atomic_caps, set_hca_cap, atomic_req_8B_endianess_mode,
+       MLX5_SET(atomic_caps, set_hca_cap, atomic_req_8B_endianness_mode,
                 MLX5_ATOMIC_REQ_MODE_HOST_ENDIANNESS);
 
        err = set_caps(dev, set_ctx, set_sz, MLX5_SET_HCA_CAP_OP_MOD_ATOMIC);
@@ -562,8 +562,8 @@ query_ex:
 
 static int set_hca_ctrl(struct mlx5_core_dev *dev)
 {
-       struct mlx5_reg_host_endianess he_in;
-       struct mlx5_reg_host_endianess he_out;
+       struct mlx5_reg_host_endianness he_in;
+       struct mlx5_reg_host_endianness he_out;
        int err;
 
        if (!mlx5_core_is_pf(dev))
index 32b044e953d22ae5ddbc2ffaa1f73ca4273db83d..1fd1446624911bfa65d0f9139b6be7d8f9ba2e72 100644 (file)
@@ -661,9 +661,9 @@ enum {
 struct mlx5_ifc_atomic_caps_bits {
        u8         reserved_at_0[0x40];
 
-       u8         atomic_req_8B_endianess_mode[0x2];
+       u8         atomic_req_8B_endianness_mode[0x2];
        u8         reserved_at_42[0x4];
-       u8         supported_atomic_req_8B_endianess_mode_1[0x1];
+       u8         supported_atomic_req_8B_endianness_mode_1[0x1];
 
        u8         reserved_at_47[0x19];