linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] gpio: Simplify with of_device_get_match_data()
@ 2025-11-06 16:16 Krzysztof Kozlowski
  2025-11-06 16:16 ` [PATCH 1/4] gpio: tb10x: Drop unused tb10x_set_bits() function Krzysztof Kozlowski
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-11-06 16:16 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
	Eugeniy Paltsev, Shubhrajyoti Datta, Srinivas Neeli, Michal Simek
  Cc: linux-gpio, linux-kernel, linux-arm-kernel, linux-aspeed,
	Krzysztof Kozlowski

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 (4):
      gpio: tb10x: Drop unused tb10x_set_bits() function
      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-tb10x.c     | 19 -------------------
 drivers/gpio/gpio-zynq.c      |  8 +++-----
 4 files changed, 6 insertions(+), 32 deletions(-)
---
base-commit: 5892a3d1e4764f041ce756d8f8b321d2c92f653a
change-id: 20251106-gpio-of-match-23b24cddf063

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


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

end of thread, other threads:[~2025-11-07 10:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-06 16:16 [PATCH 0/4] gpio: Simplify with of_device_get_match_data() Krzysztof Kozlowski
2025-11-06 16:16 ` [PATCH 1/4] gpio: tb10x: Drop unused tb10x_set_bits() function Krzysztof Kozlowski
2025-11-06 16:16 ` [PATCH 2/4] gpio: aspeed: Simplify with of_device_get_match_data() Krzysztof Kozlowski
2025-11-06 16:23   ` Bartosz Golaszewski
2025-11-06 19:13     ` Krzysztof Kozlowski
2025-11-07 10:32       ` Bartosz Golaszewski
2025-11-06 16:16 ` [PATCH 3/4] gpio: creg-snps: " Krzysztof Kozlowski
2025-11-06 16:16 ` [PATCH 4/4] gpio: zynq: " Krzysztof Kozlowski
2025-11-06 17:19 ` (subset) [PATCH 0/4] gpio: " Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).