]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4310b67c71c1e9fe28853a2c4ae59d5e8167bb8
treebca028943a00080923c1bfb44cd6064234862bba
parentfb880221d0e8a50cfa7a96ec20392fffe8ab3344
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