diff options
| author | Luiz Angelo Daros de Luca <luizluca@gmail.com> | 2026-10-02 11:14:57 -0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-05 17:13:17 -0700 |
| commit | 9b84b36a527ccc831389628058a5bb1fcad66008 (patch) | |
| tree | 9efb80b8a9d6d0e4cef5daac8482d94917218083 /include/linux/debugobjects.h | |
| parent | 810a662abcd56509db2db3e385a6979a0d5cf021 (diff) | |
net: dsa: realtek: rtl8365mb: define masks using BIT() and GENMASK()
Refactor register bitmask definitions to use the standard BIT() and
GENMASK() macros instead of hardcoded hexadecimal values. This improves
code readability, reducing the chance of errors such as unintentional
gaps or overlaps.
Introduce RTL8365MB_PORT_MASK as an alias for GENMASK(10, 0) to replace
the repetitive 0x07FF values used across various port-related bitfields.
This is a pure refactoring patch; no functional changes are introduced.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>
Link: https://patch.msgid.link/20261002-realtek_bit-v1-1-771fb0e39083@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
