]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
brcm80211: brcmsmac: Move LEDs to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 11 Jul 2020 21:01:50 +0000 (23:01 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Jul 2020 09:51:22 +0000 (12:51 +0300)
commitb424808115cb0141da851082d84ede20caa2215c
tree899af743c2a6fbea305c2bd88a26af48f08427e1
parent29e354ebeeecaee979e6fe22cd6272682d7552c9
brcm80211: brcmsmac: Move LEDs to GPIO descriptors

The code in the BRCM80211 BRCMSMAC driver is using the legacy
GPIO API to to a complex check of the validity of the base of
the GPIO chip and whether it is present at all and then adding
an offset to the base of the chip.

Use the existing function to obtain a GPIO line internally
from a GPIO chip so we can use the offset directly and
modernize the code to use GPIO descriptors instead of integers
from the global GPIO numberspace.

Cc: Wright Feng <wright.feng@cypress.com>
Cc: Frank Kao <frank.kao@cypress.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200711210150.4943-1-linus.walleij@linaro.org
drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c
drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.h