net: sfp: Add and use macros for SFP quirks definitions
authorMarek Behún <kabel@kernel.org>
Fri, 30 Sep 2022 14:21:07 +0000 (16:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2022 10:08:33 +0000 (11:08 +0100)
commit13c8adcf221f1ff407115d3269e0fb57e8cecf82
treebca028943a00080923c1bfb44cd6064234862bba
parent31eb8907aa5b9e9be1a63f2ac574973715172ab4
net: sfp: Add and use macros for SFP quirks definitions

Add macros SFP_QUIRK(), SFP_QUIRK_M() and SFP_QUIRK_F() for defining SFP
quirk table entries. Use them to deduplicate the code a little bit.

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c