mlxsw: core: Create the mlxsw_fw_rev struct
authorYotam Gigi <yotamg@mellanox.com>
Tue, 23 May 2017 19:56:28 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 21:46:17 +0000 (17:46 -0400)
This struct was previously an anonymous struct defined inside the
mlxsw_bus_info struct. Extract it to a struct named mlxsw_fw_rev, as it
will be needed later by the spectrum driver.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.h

index 7fb35395adf52076ead77cbcbe0381317c197627..6e966af72fc447b8c5be33d70f4ab5b0ec9839ad 100644 (file)
@@ -344,15 +344,17 @@ struct mlxsw_bus {
        u8 features;
 };
 
+struct mlxsw_fw_rev {
+       u16 major;
+       u16 minor;
+       u16 subminor;
+};
+
 struct mlxsw_bus_info {
        const char *device_kind;
        const char *device_name;
        struct device *dev;
-       struct {
-               u16 major;
-               u16 minor;
-               u16 subminor;
-       } fw_rev;
+       struct mlxsw_fw_rev fw_rev;
        u8 vsd[MLXSW_CMD_BOARDINFO_VSD_LEN];
        u8 psid[MLXSW_CMD_BOARDINFO_PSID_LEN];
 };