diff options
author | Igor Russkikh <igor.russkikh@aquantia.com> | 2018-01-15 14:41:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-16 20:40:00 +0100 |
commit | 4cbc9f92f9a134fb4c8ab190a1ed5f9014bb99a5 (patch) | |
tree | d076879074c0c947402880ffe4b9a16e1ae22c91 /drivers/net/ethernet/aquantia/atlantic/aq_nic.h | |
parent | net: aquantia: Remove duplicate hardware descriptors declarations (diff) | |
download | linux-4cbc9f92f9a134fb4c8ab190a1ed5f9014bb99a5.tar.xz linux-4cbc9f92f9a134fb4c8ab190a1ed5f9014bb99a5.zip |
net: aquantia: Add const qualifiers for hardware ops tables
Hardware operations and capabilities tables are constants and
never changed. Declare these as constants.
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_nic.h')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_nic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.h b/drivers/net/ethernet/aquantia/atlantic/aq_nic.h index be3b4ce49749..715b53c689ef 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.h +++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.h @@ -34,7 +34,7 @@ struct aq_hw_ops; #define AQ_NIC_RATE_100M BIT(5) struct aq_nic_cfg_s { - struct aq_hw_caps_s *aq_hw_caps; + const struct aq_hw_caps_s *aq_hw_caps; u64 hw_features; u32 rxds; /* rx ring size, descriptors # */ u32 txds; /* tx ring size, descriptors # */ |