public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] gpio: Simplify with of_device_get_match_data()
@ 2025-12-19 10:11 Krzysztof Kozlowski
  2025-12-19 10:11 ` [PATCH v2 1/3] gpio: aspeed: " Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-12-19 10:11 UTC (permalink / raw)
  To: Linus Walleij, Joel Stanley, Andrew Jeffery, Eugeniy Paltsev,
	Shubhrajyoti Datta, Srinivas Neeli, Michal Simek, Linus Walleij,
	Bartosz Golaszewski
  Cc: linux-gpio, linux-kernel, linux-arm-kernel, linux-aspeed,
	Krzysztof Kozlowski

Changes in v2:
- Drop applied patch
- Use device_get_match_data() as suggested by Bartosz
- Link to v1: https://patch.msgid.link/20251106-gpio-of-match-v1-0-50c7115a045e@linaro.org

Few simple cleanups, not tested on the hardware.

Care has to be taken when converting of_match_data() into
of_device_get_match_data(), because first can check arbitrary
device_node and the latter checks device's node.  Cases here should be
safe because of_match_data() uses 'pdev->dev.of_node'.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (3):
      gpio: aspeed: Simplify with of_device_get_match_data()
      gpio: creg-snps: Simplify with of_device_get_match_data()
      gpio: zynq: Simplify with of_device_get_match_data()

 drivers/gpio/gpio-aspeed.c    | 7 ++-----
 drivers/gpio/gpio-creg-snps.c | 4 +---
 drivers/gpio/gpio-zynq.c      | 8 +++-----
 3 files changed, 6 insertions(+), 13 deletions(-)
---
base-commit: 26ac2c4153a2c543a4ef3dee421b46bedb0f8f0f
change-id: 20251106-gpio-of-match-23b24cddf063

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-01-01 22:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-19 10:11 [PATCH v2 0/3] gpio: Simplify with of_device_get_match_data() Krzysztof Kozlowski
2025-12-19 10:11 ` [PATCH v2 1/3] gpio: aspeed: " Krzysztof Kozlowski
2026-01-01 22:35   ` Linus Walleij
2025-12-19 10:11 ` [PATCH v2 2/3] gpio: creg-snps: " Krzysztof Kozlowski
2026-01-01 22:35   ` Linus Walleij
2025-12-19 10:11 ` [PATCH v2 3/3] gpio: zynq: " Krzysztof Kozlowski
2025-12-19 10:14   ` Michal Simek
2025-12-19 10:15   ` Bartosz Golaszewski
2025-12-19 12:10     ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox