]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: use enums for mailbox cmd and sub_cmds
authorRaju Rangoju <Raju.Rangoju@amd.com>
Thu, 20 Oct 2022 06:42:12 +0000 (12:12 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Oct 2022 05:40:21 +0000 (22:40 -0700)
commitf2ffbef489aa87daece6568d1ca6fb970a3538d4
treed5b547ad14bc9eda857a64ac4b359e1f268f6eec
parenta87006c019d456078b86a1abdef5c642bf15e40a
amd-xgbe: use enums for mailbox cmd and sub_cmds

Instead of using hardcoded values, use enumerations for mailbox command
and sub commands.

Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
drivers/net/ethernet/amd/xgbe/xgbe.h