bnxt_en: Refactor bnxt_flash_nvram.
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Sun, 13 Dec 2020 11:51:42 +0000 (06:51 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 02:52:17 +0000 (18:52 -0800)
commit93ff343528ce034ef35e71d3b1d506df3cf85282
tree1bb50752d464bd2a51520c4ae03e7e8dd35e6972
parent2aa899ebd5c3aef707460f58951cc8a1d1f466c1
bnxt_en: Refactor bnxt_flash_nvram.

Refactor bnxt_flash_nvram() into __bnxt_flash_nvram() that takes an
additional dir_item_len parameter.  The new function will be used
in subsequent patches with the dir_item_len parameter set to create
the UPDATE directory during flashing.

Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c