linux/drivers/staging
Sergio Paracuellos c4604a0e5c staging: mt7621-gpio: set different names for each gpio_chip and irq_chip
Currently the driver defines 3 gpiochips, one for each bank.

/sys/class/gpio/gpiochip416/label:1e000600.gpio
/sys/class/gpio/gpiochip448/label:1e000600.gpio
/sys/class/gpio/gpiochip480/label:1e000600.gpio

Unfortunately they all have the same label

Interrupts from /proc/interrupt show the same name which is
confusing:

/proc/interrupts:

17: 0  0  0  0  MIPS GIC  19  mt7621, mt7621, mt7621

which is the interrupt from the GPIO controller.
It is a little weird that all three banks are named "mt7621"
here. We also have:

26: 0  0  0  0  GPIO  18  reset

which is the interrupt from GPIO which provides the "reset"
button. I suspect that if I had interrupts form two different
banks they would both be called "GPIO" which would be a little
confusing.

In order to unify all of this set different names for each chip
Use a 'bank-based' name instead the same for all: 'mt7621-bank[0-2]'.
Create a new 'mediatek_gpio_bank_name' function which return the
name depending on the bank number. This function is allways called
with a valid index 0, 1 or 2.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-28 21:50:58 +09:00
..
android treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
board staging: board: Replace license boilerplate with SPDX identifiers 2018-05-06 19:11:23 -07:00
clocking-wizard staging: clocking-wizard: prefer 'help' in Kconfig 2018-06-17 09:05:13 +02:00
comedi Staging: comedi: comedi_compat32.h: fixed missing or malformed SPDX-License-Identifier 2018-06-18 10:55:11 +02:00
dgnc
emxx_udc
fbtft - Core Frameworks 2018-06-11 07:23:19 -07:00
fsl-dpaa2 Staging/IIO patches for 4.18-rc1 2018-06-09 10:32:39 -07:00
fsl-mc docs: fix broken references with multiple hints 2018-06-15 18:10:01 -03:00
fwserial tty: replace ->proc_fops with ->proc_show 2018-05-16 07:24:30 +02:00
gdm724x Staging: gdm724x: use match_string() helper 2018-06-17 09:05:13 +02:00
goldfish staging: goldfish: Fix checkpatch CHECK in goldfish_audio.c 2018-06-18 10:55:11 +02:00
greybus treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
gs_fpgaboot
iio staging:iio:accel:adis16240: sign extend function replace hard code duplication 2018-06-24 14:45:06 +01:00
ks7010 staging: ks7010: avoid casting inside cpu_to_* assignments 2018-05-20 14:47:14 +02:00
media media: v4l: fix broken video4linux docs locations 2018-06-15 18:10:01 -03:00
most staging: most: video: fix build warnings 2018-05-14 11:42:28 +02:00
mt29f_spinand
mt7621-dma
mt7621-dts staging: mt7621-dts: Fix remaining pcie warnings 2018-06-28 21:50:16 +09:00
mt7621-eth staging: mt7621-eth: Use eth_hw_addr_random() 2018-06-28 21:50:16 +09:00
mt7621-gpio staging: mt7621-gpio: set different names for each gpio_chip and irq_chip 2018-06-28 21:50:58 +09:00
mt7621-mmc staging: mt7621-mmc: Find response of SD_APP_OP_COND by default 2018-06-28 21:48:05 +09:00
mt7621-pci staging: mt7621-pci: Fix coding style error 2018-06-17 09:05:12 +02:00
mt7621-pinctrl staging: mt7621-pinctrl: replace ENOSYS with better fitting error code 2018-06-28 21:46:05 +09:00
mt7621-spi staging: mt7621-spi: Remove unnecessary braces {} from single statement if block. 2018-06-17 09:05:12 +02:00
netlogic
nvec Revert "staging: nvec: Augment TODO file with GPIO work item" 2018-04-23 18:49:51 +02:00
octeon
octeon-usb
olpc_dcon
pi433 staging: pi433: fix race condition in pi433_ioctl 2018-06-17 09:05:12 +02:00
rtl8188eu staging: rtl8188eu: add SPDX identifiers 2018-06-26 11:58:22 +08:00
rtl8192e Staging:rtl8192e Cleanup comparison to NULL 2018-06-26 11:47:29 +08:00
rtl8192u staging: rtl8192u: Correction of spelling mistake in comment. 2018-06-26 11:57:13 +08:00
rtl8712
rtl8723bs staging: rtl8723bs: drop test 2018-06-17 09:05:14 +02:00
rtlwifi staging: rtlwifi: Fix "Alwyas"->"Always" 2018-06-17 09:05:14 +02:00
rts5208 staging: rts5208: add error handling into rtsx_probe 2018-06-17 09:05:13 +02:00
skein
sm750fb staging: sm750fb: add drm development branch details 2018-05-06 18:51:38 -07:00
speakup staging: speakup: refactor synths array to use a list 2018-06-17 09:05:11 +02:00
typec
unisys treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
vboxvideo staging: vboxvideo: Update driver to use drm_dev_register. 2018-06-17 09:05:13 +02:00
vc04_services staging: vc04_services: make a couple of pointers static 2018-06-17 09:05:14 +02:00
vme
vt6655 staging: vt6655: remove unnecessary line breaks in function definition. 2018-04-23 15:23:36 +02:00
vt6656
wilc1000 staging: wilc1000: move 'txq_spinlock_flags' from 'wilc' structure to local variable 2018-06-17 09:05:13 +02:00
wlan-ng staging: wlan-ng: remove unused declarations from p80211types.h 2018-05-31 19:00:53 +02:00
xgifb
Kconfig staging: ipx: delete it from the tree 2018-06-05 19:23:26 +02:00
Makefile staging: ipx: delete it from the tree 2018-06-05 19:23:26 +02:00