]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: convert to regmap_assign_bits() 23099/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 26 Apr 2026 07:22:02 +0000 (09:22 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 27 Apr 2026 22:41:18 +0000 (00:41 +0200)
commit0ba4e2c97101b7ad464dc63705f97e887295e8cd
treecc2a2335ffc61a8973ff1018bbba5f62126f02c7
parent596ce2845d338d1b7322f13b1674128a76856b4a
realtek: mdio: convert to regmap_assign_bits()

Use regmap_assign_bits() where it improves readability. With this
there is no need to calculate masks and values in separate lines.

Splitting the single update_bits() in rtmdio_931x_setup_polling()
into two separate assign_bits() is uncritical.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/23099
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c