diff options
| author | Birger Koblitz <mail@birger-koblitz.de> | 2026-04-28 05:44:58 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-04-29 17:56:15 -0700 |
| commit | b7ebbf9f7aea1c0fdcad0a09d6bd15fa0975ae47 (patch) | |
| tree | c8cbe98c8bc7f200f214c16bd1a7298de9c25207 /include/linux/timerqueue.h | |
| parent | 115553b80f774348596e5e252975c795ab021e12 (diff) | |
r8152: Use ocp/mdio test and clear functions in r8157_hw_phy_cfg()
Replace explicit testing of bits and clearing these bits by existing
functions ocp_word_test_and_clr_bits() and r8152_mdio_test_and_clr_bit()
to re-use this code.
This allows to remove the "ocp_data" variable. Also remove the "ret" variable
which was incorrectly used for the r8153_phy_status() return value which
is a u16, so that the remaining "data" variable is sufficient.
Signed-off-by: Birger Koblitz <mail@birger-koblitz.de>
Link: https://patch.msgid.link/20260428-use_bit_functions-v1-1-6eb5a3507610@birger-koblitz.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
