]> git.itanic.dy.fi Git - linux-stable/commit
net: mdio: mux-bcm-iproc: Use alignment helpers and SZ_4K
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 29 Dec 2023 14:52:32 +0000 (16:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jan 2024 00:40:59 +0000 (16:40 -0800)
commit73b2e2e3fe26f97010444e29536b3e815bbc57da
tree6fd11548e801a37f6e1387157734d7cca24d36ef
parent2ab1efad60ad119b616722b81eeb73060728028c
net: mdio: mux-bcm-iproc: Use alignment helpers and SZ_4K

Instead of open coding, use IS_ALIGNED() and ALIGN_DOWN() when dealing
with alignment. Replace also literals with SZ_4K.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
Link: https://lore.kernel.org/r/20231229145232.6163-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mux-bcm-iproc.c