summaryrefslogtreecommitdiff
path: root/include/linux/sfp.h
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-10-21 16:09:59 +0100
committerJakub Kicinski <kuba@kernel.org>2022-10-24 21:06:16 -0700
commit398900498485fa9465386454681763d81efaad25 (patch)
tree7ce33631bdaebb018cc4f619fe64b5260b7257d0 /include/linux/sfp.h
parentf8810ca7582933e436e6c987808bbcc14f5543df (diff)
net: sfp: provide a definition for the power level select bit
Provide a named definition for the power level select bit in the extended status register, rather than using BIT(0) in the code. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/sfp.h')
-rw-r--r--include/linux/sfp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sfp.h b/include/linux/sfp.h
index d1f343853b6c..01ae9f1dd2ad 100644
--- a/include/linux/sfp.h
+++ b/include/linux/sfp.h
@@ -489,6 +489,8 @@ enum {
SFP_WARN1_RXPWR_LOW = BIT(6),
SFP_EXT_STATUS = 0x76,
+ SFP_EXT_STATUS_PWRLVL_SELECT = BIT(0),
+
SFP_VSL = 0x78,
SFP_PAGE = 0x7f,
};