]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: sfp: add sfp_modify_u8() helper
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 21 Oct 2022 15:10:04 +0000 (16:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Oct 2022 04:06:20 +0000 (21:06 -0700)
commita3c536fc75803b298fd6ba75af33eecf43d31785
treeaec3c3671e423195e39d564851c115d24fa7e788
parent398900498485fa9465386454681763d81efaad25
net: sfp: add sfp_modify_u8() helper

Add a helper to modify bits in a single byte in memory space, and use
it when updating the soft tx-disable flag in the module.

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>
drivers/net/phy/sfp.c