]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: usb: sr9700: replace magic numbers with register bit macros
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 24 Jan 2026 03:22:43 +0000 (19:22 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Jan 2026 23:48:45 +0000 (15:48 -0800)
commit3b721117fe150fc4d78628d78627f9b446930b44
tree494c51952586adc12717737755d081459ccb2368
parent90defad242fbfd47967f03ee3bb39f09427195c2
net: usb: sr9700: replace magic numbers with register bit macros

The first byte of the Rx frame is a copy of the Rx status register, so
0x40 corresponds to RSR_MF (meaning the frame is multicast). Replace
0x40 with RSR_MF for clarity. (All other bits of the RSR indicate
errors. The fact that the driver ignores these errors will be fixed by
a later patch.)

The first byte of the status URB is a copy of the NSR, so 0x40
corresponds to NSR_LINKST. Replace 0x40 with NSR_LINKST for clarity.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Reviewed-by: Peter Korsgaard <peter@korsgaard.com>
Link: https://patch.msgid.link/20260124032248.26807-1-enelsonmoore@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/sr9700.c