diff options
| author | Kevin Hao <haokexin@gmail.com> | 2026-04-02 21:41:23 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-04-03 15:51:04 -0700 |
| commit | 5986ff6e4136105f16d481bd0532b7da2c6344ae (patch) | |
| tree | a26d865b9ec8e365eb25b7ed180846ae87649bac /tools/testing/vma/include/git@git.tavy.me:linux.git | |
| parent | dc3bd465ea36af7fd6f9197c05353effc616145c (diff) | |
net: macb: Introduce macb_queue_isr_clear() helper function
The current implementation includes several occurrences of the
following pattern:
if (bp->caps & MACB_CAPS_ISR_CLEAR_ON_WRITE)
queue_writel(queue, ISR, value);
Introduces a helper function to consolidate these repeated code
segments. No functional changes are made.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://patch.msgid.link/20260402-macb-irq-v2-2-942d98ab1154@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/vma/include/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
