diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-10-21 16:07:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-23 17:21:29 -0400 |
commit | c1a3831121f60f614fe92314d8c271d4d89d0a9a (patch) | |
tree | fde5cd59973f2e5cfca9641a8de79a43c3265094 /init/do_mounts_md.c | |
parent | f38a2314e55978e7b5c128175db27244665d0765 (diff) | |
download | lwn-c1a3831121f60f614fe92314d8c271d4d89d0a9a.tar.gz lwn-c1a3831121f60f614fe92314d8c271d4d89d0a9a.zip |
mlxsw: Convert resources into array
Since the number of resources is going to get much bigger, ease up the
addition by simly defining IDs. Convert the existing structure members
to a set array, one for validity, one for values. Introduce a set of
getters and setters for easy access.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init/do_mounts_md.c')
0 files changed, 0 insertions, 0 deletions