]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: b53: hide legacy gpiolib usage on non-mips
authorArnd Bergmann <arnd@arndb.de>
Mon, 1 Jun 2026 16:56:42 +0000 (18:56 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Jun 2026 18:13:08 +0000 (11:13 -0700)
commitc0b3005e32ce78e6cef53a61216fedfb268762bc
tree17b0cba26d3d8c7cefc9cf5bd97624db789a55d9
parent51e4eca2d360b8610fdc2b71ebfea3c0c4038a70
net: dsa: b53: hide legacy gpiolib usage on non-mips

The MIPS bcm53xx platform still uses the legacy gpiolib interfaces based
on gpio numbers, but other platforms do not.

Hide these interfaces inside of the existing #ifdef block and use the
modern interfaces in the common parts of the driver to allow building
it when the gpio_set_value() is left out of the kernel.

Reviewed-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260601165716.648230-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_priv.h