Linus Walleij <linus.walleij@xxxxxxxxxx> wrote: > 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@xxxxxxxxxxx> > Cc: Frank Kao <frank.kao@xxxxxxxxxxx> > Cc: Kalle Valo <kvalo@xxxxxxxxxxxxxx> > Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Patch applied to wireless-drivers-next.git, thanks. b424808115cb brcm80211: brcmsmac: Move LEDs to GPIO descriptors -- https://patchwork.kernel.org/patch/11657979/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches