summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAreeb Ul Haq Mirza <auhmirza02@gmail.com>2026-09-24 15:02:42 +0100
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-09-28 10:35:27 +0200
commitc4e74a7058b573617f142e07b4b5bc9eee04f4c8 (patch)
treeee42529cb78bb712516829597e7fb012cd389509 /tools
parentdd36a4b7f391eec4daa336c837a197dab0cf6401 (diff)
downloadlinux-next-c4e74a7058b573617f142e07b4b5bc9eee04f4c8.tar.gz
linux-next-c4e74a7058b573617f142e07b4b5bc9eee04f4c8.zip
gpio: pxa: stop reading gpio_chip::base in direction callbacks
__gpio_is_inverted() identifies GPIO86-89 on PXA26x by comparing its argument against hardware line numbers, and its other callers pass the hardware index from irqd_to_hwirq(). The direction_input() and direction_output() callbacks instead pass chip->base + offset. Pass the offset directly, which is the same conversion that commit 566e684e70cb ("gpio: pxa: use new pinctrl GPIO helpers") made for the pinctrl calls in these functions. No functional change: the driver never sets chip->base, which stays zero because struct pxa_gpio_chip is allocated with devm_kzalloc(). This removes a dependency on gpio_chip::base, as tracked in drivers/gpio/TODO. Signed-off-by: Areeb Ul Haq Mirza <auhmirza02@gmail.com> Link: https://patch.msgid.link/20260924140242.126159-1-auhmirza02@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions