net: rswitch: Replace enum rswitch_reg with plain macros
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 15 Dec 2024 23:57:49 +0000 (00:57 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 29 Dec 2024 15:55:32 +0000 (16:55 +0100)
commit58fe39b624e7bcd531f113957cd732d2a52f828f
tree0c23804db13d221f4b535644b6546e614960d885
parent7a9d813580032beb4bd8c9f325c5ad09e6875057
net: rswitch: Replace enum rswitch_reg with plain macros

Replace enum rswitch_reg with plain #define REGISTER OFFSET macros.
The enum rswitch_reg was not referenced anywhere, so there was no
benefit of keeping it around. Include register block labels. Turn
all register offsets into lowercase hex values. No functional change.

Rename EATDQDC to EATDQDCR, GWTRC to GWTRCR, GWDCC to GWDCCR, FWPC0
to FWPC, FWPBFC to FWPBFCR, FWPBFCSDC to FWPBFCSDCR because there
are both register names which used to be part of this enum and also
macros with the same name, each used for slightly different purpose.
Make sure there is no collission.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/net/rswitch.c