2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpio
Alexander Stein d563e7f95c gpio: of: initialize local variable passed to the .of_xlate() callback
of_flags is passed down to GPIO chip's xlate function, so ensure this one
is properly initialized as - if the xlate callback does nothing with it
- we may end up with various configuration errors like:

    gpio-720 (enable): multiple pull-up, pull-down or pull-disable enabled, invalid configuration

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20250708083829.658051-1-alexander.stein@ew.tq-group.com
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2025-07-09 16:14:11 +02:00
..
dev-sync-probe.c gpio: introduce utilities for synchronous fake device creation 2025-02-24 14:57:39 +01:00
dev-sync-probe.h gpio: introduce utilities for synchronous fake device creation 2025-02-24 14:57:39 +01:00
gpio-74x164.c gpio: 74x164: use new line value setter callbacks 2025-03-10 11:52:12 +01:00
gpio-74xx-mmio.c gpio: 74xx-mmio: remove unneeded platform_set_drvdata() call 2023-07-29 16:03:17 +02:00
gpio-104-dio-48e.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-104-idi-48.c
gpio-104-idio-16.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-adnp.c gpio: adnp: use new line value setter callbacks 2025-03-10 11:54:34 +01:00
gpio-adp5520.c gpio: adp5520: use new line value setter callbacks 2025-03-10 11:52:12 +01:00
gpio-adp5585.c gpio: adp5585: use new line value setter callbacks 2025-03-10 11:52:12 +01:00
gpio-aggregator.c gpio: aggregator: Fix leak in gpio_aggregator_parse() 2025-04-14 22:25:20 +02:00
gpio-altera-a10sr.c gpio: altera-a10sr: use new line value setter callbacks 2025-03-10 11:52:12 +01:00
gpio-altera.c gpio: altera: use new line value setter callbacks 2025-03-10 11:52:13 +01:00
gpio-amd8111.c gpio: amd8111: use new line value setter callbacks 2025-03-10 11:52:13 +01:00
gpio-amd-fch.c gpio: amd-fch: use new line value setter callbacks 2025-03-10 11:52:13 +01:00
gpio-amdpt.c gpio: amdpt: remove remove() 2024-10-17 08:53:34 +02:00
gpio-arizona.c gpio: arizona: use new line value setter callbacks 2025-03-10 11:52:13 +01:00
gpio-aspeed-sgpio.c gpio: aspeed-sgpio: use new line value setter callbacks 2025-03-10 11:52:13 +01:00
gpio-aspeed.c gpio: aspeed: use new line value setter callbacks 2025-03-10 11:52:13 +01:00
gpio-ath79.c gpio: ath79: remove support for platform data 2024-09-02 09:45:18 +02:00
gpio-bcm-kona.c gpio: bcm-kona: make irq_chip immutable 2025-05-15 17:02:22 +02:00
gpio-bd9571mwv.c gpio: bd9571mwv: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-bd71815.c gpio: bd71815: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-bd71828.c gpio: bd71828: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-blzp1600.c gpio: blzp1600: remove incorrect pf_match_ptr() 2025-05-05 15:02:58 +02:00
gpio-brcmstb.c gpio: Switch to irq_domain_create_*() 2025-05-16 21:06:09 +02:00
gpio-bt8xx.c gpio: bt8xx: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-cadence.c gpio: Switch back to struct platform_driver::remove() 2024-10-17 09:00:48 +02:00
gpio-cgbc.c gpio: cgbc: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-clps711x.c gpio: clps711x: remove redundant of_match_ptr() 2023-08-03 15:58:46 +02:00
gpio-creg-snps.c gpio: creg-snps: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-cros-ec.c gpio: cros-ec: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-crystalcove.c gpio: crystalcove: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-cs5535.c gpio: cs5535: use new line value setter callbacks 2025-03-17 08:27:41 +01:00
gpio-da9052.c gpio: da9052: use new line value setter callbacks 2025-03-17 08:27:42 +01:00
gpio-da9055.c gpio: da9055: use new line value setter callbacks 2025-03-17 08:27:42 +01:00
gpio-davinci.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpio-dln2.c gpio: dln2: use new line value setter callbacks 2025-04-16 17:52:42 +02:00
gpio-ds4520.c gpio: ds4520: don't check the 'ngpios' property in the driver 2025-04-17 13:58:55 +02:00
gpio-dwapb.c gpio: dwapb: Add ACPI HID for DWAPB GPIO controller on Fujitsu MONAKA 2024-10-31 13:37:54 +01:00
gpio-eic-sprd.c gpio: eic-sprd: use new line value setter callbacks 2025-04-16 17:52:42 +02:00
gpio-elkhartlake.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-em.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpio-en7523.c gpio: EN7523: fix kernel-doc warnings 2024-01-15 23:15:35 +01:00
gpio-ep93xx.c Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
gpio-exar.c gpio: exar: use new line value setter callbacks 2025-04-16 17:52:43 +02:00
gpio-f7188x.c gpio: f7188: use new line value setter callbacks 2025-04-17 13:58:54 +02:00
gpio-ftgpio010.c gpio: ftgpio010: shrink code 2024-10-21 09:23:34 +02:00
gpio-fxl6408.c gpio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-07-29 10:50:51 +02:00
gpio-ge.c gpio: ge: Replace GPLv2 boilerplate with SPDX 2023-07-27 09:33:07 +02:00
gpio-gpio-mm.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-graniterapids.c gpio: graniterapids: use new line value setter callbacks 2025-04-17 13:58:54 +02:00
gpio-grgpio.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpio-gw-pld.c gpio: gw-pld: use new line value setter callbacks 2025-04-17 13:58:54 +02:00
gpio-hisi.c gpio: hisi: Fix format specifier 2023-10-13 08:39:30 +02:00
gpio-hlwd.c Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
gpio-htc-egpio.c gpio: htc-egpio: use new line value setter callbacks 2025-04-17 13:58:54 +02:00
gpio-i8255.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-i8255.h
gpio-ich.c gpio: ich: use new line value setter callbacks 2025-04-17 13:58:55 +02:00
gpio-idio-16.c gpio: idio-16: Actually make use of the GPIO_IDIO_16 symbol namespace 2024-12-10 11:38:57 +01:00
gpio-idio-16.h gpio: idio-16: Remove unused legacy interface 2023-08-11 14:23:32 +02:00
gpio-idt3243x.c gpio: idt3243x: Switch to irq_find_mapping() 2025-05-16 21:06:12 +02:00
gpio-imx-scu.c gpio: imx-scu: use new line value setter callbacks 2025-04-30 10:27:58 +02:00
gpio-it87.c gpio: it87: use new line value setter callbacks 2025-04-30 10:27:58 +02:00
gpio-ixp4xx.c gpio: ixp4xx: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-janz-ttl.c gpio: janz-ttl: use new line value setter callbacks 2025-04-30 10:27:58 +02:00
gpio-kempld.c gpio: kempld: use new line value setter callbacks 2025-04-30 10:27:58 +02:00
gpio-latch.c gpio: latch: use value returning setters 2025-02-26 11:17:40 +01:00
gpio-ljca.c gpio: ljca: use new line value setter callbacks 2025-04-30 10:27:58 +02:00
gpio-logicvc.c gpio: logicvc: use new line value setter callbacks 2025-04-30 10:27:58 +02:00
gpio-loongson1.c
gpio-loongson-64bit.c gpio: loongson-64bit: Correct Loongson-7A2000 ACPI GPIO access mode 2025-06-11 14:33:26 +02:00
gpio-loongson.c gpio: loongson: use new line value setter callbacks 2025-04-30 10:27:59 +02:00
gpio-lp873x.c gpio: lp873x: use new GPIO line value setter callbacks 2025-05-13 15:15:34 +02:00
gpio-lp3943.c gpio: lp3943: use new line value setter callbacks 2025-04-30 10:27:59 +02:00
gpio-lp87565.c gpio: lp87565: use new GPIO line value setter callbacks 2025-05-13 15:15:34 +02:00
gpio-lpc18xx.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpio-lpc32xx.c gpio: lpc32xx: use new GPIO line value setter callbacks 2025-05-13 15:15:34 +02:00
gpio-madera.c gpio: madera: use new GPIO line value setter callbacks 2025-05-13 15:15:34 +02:00
gpio-max730x.c gpio: max730x: use new GPIO line value setter callbacks 2025-05-13 15:15:34 +02:00
gpio-max732x.c gpio: max732x: use new GPIO line value setter callbacks 2025-05-13 15:15:35 +02:00
gpio-max3191x.c gpio: max3191x: remove unused callbacks 2025-05-13 15:15:34 +02:00
gpio-max7300.c gpio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-07-29 10:50:51 +02:00
gpio-max7301.c
gpio-max77620.c gpio: max77620: use new GPIO line value setter callbacks 2025-05-13 15:15:35 +02:00
gpio-max77650.c gpio: max77650: use value returning setters 2025-02-26 11:17:40 +01:00
gpio-max77759.c gpio: max77759: Add Maxim MAX77759 gpio driver 2025-05-09 15:23:01 +01:00
gpio-mb86s7x.c gpio: mb86s7x: use new GPIO line value setter callbacks 2025-05-13 15:15:35 +02:00
gpio-mc33880.c gpio: mc33880: use new GPIO line value setter callbacks 2025-05-13 15:15:35 +02:00
gpio-menz127.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-merrifield.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-ml-ioh.c gpio: ml-ioh: use new GPIO line value setter callbacks 2025-05-13 15:15:35 +02:00
gpio-mlxbf2.c Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
gpio-mlxbf3.c gpio: mlxbf3: only get IRQ for device instance 0 2025-06-18 12:19:39 +02:00
gpio-mlxbf.c
gpio-mm-lantiq.c gpio: Switch back to struct platform_driver::remove() 2024-10-17 09:00:48 +02:00
gpio-mmio.c gpio: mmio: Add flag for calling pinctrl back-end 2025-02-24 20:49:20 +01:00
gpio-mockup.c gpio: mockup: use value returning setters 2025-02-26 11:17:39 +01:00
gpio-moxtet.c
gpio-mpc8xxx.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpio-mpc5200.c gpio: Switch back to struct platform_driver::remove() 2024-10-17 09:00:48 +02:00
gpio-mpfs.c gpio: mpfs: add CoreGPIO support 2024-11-13 16:29:27 +01:00
gpio-mpsse.c gpio: mpsse: Remove usage of the deprecated ida_simple_xx() API 2024-11-22 15:23:31 +01:00
gpio-msc313.c gpio: msc313: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-mt7621.c
gpio-mvebu.c A set of cleanups for the generic interrupt subsystem: 2025-05-27 08:07:32 -07:00
gpio-mxc.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpio-mxs.c gpio: Switch to irq_domain_create_*() 2025-05-16 21:06:09 +02:00
gpio-nomadik.c gpio: Use str_enable_disable-like helpers 2025-02-03 09:12:44 +01:00
gpio-npcm-sgpio.c gpio: nuvoton: Fix sgpio irq handle error 2024-05-07 09:44:33 +02:00
gpio-octeon.c
gpio-omap.c Driver core changes for 6.13-rc1 2024-11-29 11:43:29 -08:00
gpio-palmas.c gpio: palmas: remove unnecessary call to platform_set_drvdata() 2023-08-01 21:22:38 +02:00
gpio-pca953x.c gpio: pca953x: fix wrong error probe return value 2025-06-17 11:06:59 +02:00
gpio-pca9570.c gpio: pca9570: fix kerneldoc 2023-08-21 10:39:58 +02:00
gpio-pcf857x.c gpio: pcf857x: add support for reset-gpios on (most) PCA967x 2025-02-26 11:25:30 +01:00
gpio-pch.c gpio: pch: kerneldoc fixes for excess members 2024-09-02 14:35:32 +02:00
gpio-pci-idio-16.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-pcie-idio-24.c gpio: pcie-idio-24: Replace deprecated PCI functions 2024-11-04 09:15:38 +01:00
gpio-pisosr.c gpio: pisosr: Use devm_gpiochip_add_data() to simplify remove path 2023-07-20 17:22:10 +02:00
gpio-pl061.c Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
gpio-pmic-eic-sprd.c gpio: pmic-eic-sprd: Configure the bit corresponding to the EIC through offset 2024-01-03 09:50:47 +01:00
gpio-pxa.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpio-raspberrypi-exp.c gpio: raspberrypi-exp: remove redundant of_match_ptr() 2023-08-03 15:58:52 +02:00
gpio-rc5t583.c gpio: rc5t583: remove unneeded call to platform_set_drvdata() 2023-08-01 21:26:48 +02:00
gpio-rcar.c Linux 6.14-rc7 2025-03-17 08:27:10 +01:00
gpio-rda.c
gpio-rdc321x.c gpio: rdc321x: Convert PCIBIOS_* return codes to errnos 2024-05-30 11:21:05 +02:00
gpio-realtek-otto.c
gpio-reg.c
gpio-regmap.c gpio: regmap: use value returning setters 2025-02-26 11:17:39 +01:00
gpio-rockchip.c gpio: Switch to irq_domain_create_*() 2025-05-16 21:06:09 +02:00
gpio-rtd.c gpio: rtd: Fix signedness bug in probe 2024-01-15 11:07:46 +01:00
gpio-sa1100.c gpio: Switch to irq_domain_create_*() 2025-05-16 21:06:09 +02:00
gpio-sama5d2-piobu.c gpio: sama5d2-piobu: convert comma to semicolon 2024-09-05 09:34:51 +02:00
gpio-sch311x.c
gpio-sch.c gpio: sch: Utilise temporary variable for struct device 2024-04-15 16:12:18 +03:00
gpio-sifive.c gpio: sifive: remove unneeded call to platform_set_drvdata() 2023-11-15 15:39:40 +01:00
gpio-sim.c gpio: sim: use value returning setters 2025-02-26 11:17:39 +01:00
gpio-siox.c
gpio-sl28cpld.c
gpio-sloppy-logic-analyzer.c Linux 6.12-rc6 2024-11-04 08:46:55 +01:00
gpio-sodaville.c gpio: Switch to irq_domain_create_*() 2025-05-16 21:06:09 +02:00
gpio-spacemit-k1.c gpio: spacemit: Add missing MODULE_DEVICE_TABLE 2025-06-16 09:43:50 +02:00
gpio-spear-spics.c
gpio-sprd.c
gpio-stmpe.c Linux 6.14-rc4 2025-02-24 09:58:42 +01:00
gpio-stp-xway.c gpio: stp-xway: Simplify using devm_clk_get_enabled() 2024-09-02 12:31:48 +02:00
gpio-syscon.c gpio: syscon: fix excess struct member build warning 2024-09-02 12:35:59 +02:00
gpio-tangier.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpio-tangier.h gpio: tangier: unexport suspend/resume handles 2023-11-13 17:59:48 +02:00
gpio-tb10x.c gpio: Switch to irq_domain_create_*() 2025-05-16 21:06:09 +02:00
gpio-tc3589x.c
gpio-tegra186.c gpio: tegra186: fix resource handling in ACPI probe path 2025-04-07 08:53:10 +02:00
gpio-tegra.c Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
gpio-thunderx.c gpio: thunderx: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-timberdale.c gpio: timberdale: Make irq_chip immutable 2025-05-15 17:02:22 +02:00
gpio-tn48m.c
gpio-tpic2810.c
gpio-tps6586x.c
gpio-tps65086.c
gpio-tps65218.c gpio: tps65218: remove redundant of_match_ptr() 2023-08-03 15:55:34 +02:00
gpio-tps65219.c gpio: tps65219: Use existing kernel gpio macros 2024-12-20 14:44:24 +01:00
gpio-tps65910.c
gpio-tps65912.c
gpio-tps68470.c
gpio-tqmx86.c gpio: tqmx86: add support for changing GPIO directions 2024-12-16 10:00:46 +01:00
gpio-ts4800.c
gpio-ts4900.c gpio: ts4900: use generic device properties 2024-10-14 10:28:21 +02:00
gpio-ts5500.c gpio: Switch back to struct platform_driver::remove() 2024-10-17 09:00:48 +02:00
gpio-twl4030.c gpio: Switch to irq_domain_create_*() 2025-05-16 21:06:09 +02:00
gpio-twl6040.c gpio: twl4030: use gpiochip_get_data 2024-12-05 13:14:44 +01:00
gpio-uniphier.c gpio: Switch back to struct platform_driver::remove() 2024-10-17 09:00:48 +02:00
gpio-vf610.c gpio: vf610: Allow building as a module 2025-04-23 13:23:18 +02:00
gpio-viperboard.c
gpio-virtio.c gpio: virtio: support multiple virtio-gpio controller instances 2025-02-11 09:21:18 +01:00
gpio-virtuser.c gpio: virtuser: fix potential out-of-bound write 2025-05-13 12:59:30 +02:00
gpio-visconti.c Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
gpio-vx855.c gpio: vx855: remove unneeded call to platform_set_drvdata() 2023-08-03 15:48:15 +02:00
gpio-wcd934x.c
gpio-wcove.c gpio: Use str_enable_disable-like helpers 2025-02-03 09:12:44 +01:00
gpio-winbond.c
gpio-wm831x.c gpio: Use str_enable_disable-like helpers 2025-02-03 09:12:44 +01:00
gpio-wm8350.c
gpio-wm8994.c gpio: wm8994: use gpiochip_dup_line_label() 2023-12-08 09:26:25 +01:00
gpio-ws16c48.c gpio updates for v6.6 2023-08-29 10:21:56 -07:00
gpio-xgene-sb.c gpio: xgene-sb: Make irq_chip immutable 2025-05-15 17:02:22 +02:00
gpio-xgene.c
gpio-xgs-iproc.c Driver core changes for 6.13-rc1 2024-11-29 11:43:29 -08:00
gpio-xilinx.c gpio: xilinx: Replace custom variants of bitmap_read()/bitmap_write() 2025-02-12 10:58:14 +01:00
gpio-xlp.c
gpio-xra1403.c gpio: Use str_enable_disable-like helpers 2025-02-03 09:12:44 +01:00
gpio-xtensa.c
gpio-zevio.c gpio: zevio: Add missed label initialisation 2024-11-21 09:06:17 +01:00
gpio-zynq.c gpio: zynq: Fix wakeup source leaks on device unbind 2025-04-08 10:56:38 +02:00
gpio-zynqmp-modepin.c gpio: modepin: Enable module autoloading 2024-09-02 15:00:53 +02:00
gpiolib-acpi-core.c gpiolib: acpi: Move quirks to a separate file 2025-05-21 12:25:24 +03:00
gpiolib-acpi-quirks.c gpiolib: acpi: Move quirks to a separate file 2025-05-21 12:25:24 +03:00
gpiolib-acpi.h gpiolib: acpi: Add acpi_gpio_need_run_edge_events_on_boot() getter 2025-05-21 12:25:24 +03:00
gpiolib-cdev.c gpiolib: don't allow setting values on input lines 2025-04-07 09:00:48 +02:00
gpiolib-cdev.h
gpiolib-devres.c gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00
gpiolib-legacy.c gpio: Get rid of GPIOF_ACTIVE_LOW 2024-11-09 14:55:33 +01:00
gpiolib-of.c gpio: of: initialize local variable passed to the .of_xlate() callback 2025-07-09 16:14:11 +02:00
gpiolib-of.h gpiolib: support parsing gpio three-cell interrupts scheme 2025-04-08 18:56:19 +02:00
gpiolib-swnode.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gpiolib-swnode.h
gpiolib-sysfs.c gpiolib: don't allow setting values on input lines 2025-04-07 09:00:48 +02:00
gpiolib-sysfs.h gpiolib: revert the attempt to protect the GPIO device list with an rwsem 2024-01-17 09:52:37 +01:00
gpiolib.c gpiolib: fix performance regression when using gpio_chip_get_multiple() 2025-07-04 10:24:03 +02:00
gpiolib.h Linux 6.14-rc7 2025-03-17 08:27:10 +01:00
Kconfig gpio: timberdale: select GPIOLIB_IRQCHIP 2025-05-22 10:00:08 +02:00
Makefile intel-gpio for v6.16-1 2025-05-21 12:04:30 +02:00
TODO gpio updates for v6.16-rc1 2025-05-27 15:22:01 -07:00