summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorAndre Przywara <[email protected]>2020-07-06 01:40:34 +0100
committerJagan Teki <[email protected]>2020-10-21 23:42:51 +0530
commitf20f9465dbbee7df134ea2b1a8466799234afdf1 (patch)
treec8476ba02126f1cf539e3ba861b6d376a36647c3 /scripts/const_structs.checkpatch
parentc35380c756a607f857b57aaaf93c53648ca10e9e (diff)
net: sun8i_emac: Simplify mdio_read/mdio_write functions
When preparing the register value for the MDIO command register, we start with a zeroed register, so there is no need to mask off certain bits before setting them. Simplify the sequence, and rename the variable to a more matching mii_cmd on the way. Also the open-coded time-out routine can be replaced with a much safer and easier-to-read call to wait_for_bit_le32(). Signed-off-by: Andre Przywara <[email protected]> Acked-by: Maxime Ripard <[email protected]> Tested-by: Amit Singh Tomar <[email protected]> # Pine64+ Reviewed-by: Jagan Teki <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions