net: dsa: use regmap_assign_bits() for conditional set/clear

Replace if/else blocks using regmap_set_bits()/regmap_clear_bits() with
the simpler regmap_assign_bits() calls in the lantiq gswip, mt7530 and
qca8k drivers.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://patch.msgid.link/20260924083538.461887-1-peng.fan@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Peng Fan 2026-09-24 16:35:37 +08:00 • committed by Jakub Kicinski
commit 679950fede
3 changed files with 7 additions and 26 deletions