diff options
| author | Igor Russkikh <Igor.Russkikh@aquantia.com> | 2019-04-29 06:04:52 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-05-01 09:30:15 -0400 |
| commit | 20ffb879d023de4920cf176e9829a6872884b5c0 (patch) | |
| tree | 59922add8a3aac57b6177e867bd8765d80edd44e | |
| parent | 6775878823bf622f5143e77fd8fdf4bcd91cfd96 (diff) | |
net: aquantia: use macros for better visibility
Improve for better readability
Signed-off-by: Nikita Danilov <ndanilov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c | 8 | ||||
| -rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c index 65ffaa7ad69e..9fe507fe2d7f 100644 --- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c +++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c | |||
| @@ -350,10 +350,10 @@ err_exit: | |||
| 350 | static int hw_atl_a0_hw_init(struct aq_hw_s *self, u8 *mac_addr) | 350 | static int hw_atl_a0_hw_init(struct aq_hw_s *self, u8 *mac_addr) |
| 351 | { | 351 | { |
| 352 | static u32 aq_hw_atl_igcr_table_[4][2] = { | 352 | static u32 aq_hw_atl_igcr_table_[4][2] = { |
| 353 | { 0x20000000U, 0x20000000U }, /* AQ_IRQ_INVALID */ | 353 | [AQ_HW_IRQ_INVALID] = { 0x20000000U, 0x20000000U }, |
| 354 | { 0x20000080U, 0x20000080U }, /* AQ_IRQ_LEGACY */ | 354 | [AQ_HW_IRQ_LEGACY] = { 0x20000080U, 0x20000080U }, |
| 355 | { 0x20000021U, 0x20000025U }, /* AQ_IRQ_MSI */ | 355 | [AQ_HW_IRQ_MSI] = { 0x20000021U, 0x20000025U }, |
| 356 | { 0x20000022U, 0x20000026U } /* AQ_IRQ_MSIX */ | 356 | [AQ_HW_IRQ_MSIX] = { 0x20000022U, 0x20000026U }, |
| 357 | }; | 357 | }; |
| 358 | 358 | ||
| 359 | int err = 0; | 359 | int err = 0; |
diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c index d54566bab0e9..bfcda12d73de 100644 --- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c +++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c | |||
| @@ -388,10 +388,10 @@ err_exit: | |||
| 388 | static int hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr) | 388 | static int hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr) |
| 389 | { | 389 | { |
| 390 | static u32 aq_hw_atl_igcr_table_[4][2] = { | 390 | static u32 aq_hw_atl_igcr_table_[4][2] = { |
| 391 | { 0x20000000U, 0x20000000U }, /* AQ_IRQ_INVALID */ | 391 | [AQ_HW_IRQ_INVALID] = { 0x20000000U, 0x20000000U }, |
| 392 | { 0x20000080U, 0x20000080U }, /* AQ_IRQ_LEGACY */ | 392 | [AQ_HW_IRQ_LEGACY] = { 0x20000080U, 0x20000080U }, |
| 393 | { 0x20000021U, 0x20000025U }, /* AQ_IRQ_MSI */ | 393 | [AQ_HW_IRQ_MSI] = { 0x20000021U, 0x20000025U }, |
| 394 | { 0x20000022U, 0x20000026U } /* AQ_IRQ_MSIX */ | 394 | [AQ_HW_IRQ_MSIX] = { 0x20000022U, 0x20000026U }, |
| 395 | }; | 395 | }; |
| 396 | 396 | ||
| 397 | int err = 0; | 397 | int err = 0; |
