[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251106-gpio-of-match-v1-0-50c7115a045e@linaro.org>
Date: Thu, 06 Nov 2025 17:16:24 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>, Joel Stanley <joel@....id.au>,
Andrew Jeffery <andrew@...econstruct.com.au>,
Eugeniy Paltsev <Eugeniy.Paltsev@...opsys.com>,
Shubhrajyoti Datta <shubhrajyoti.datta@....com>,
Srinivas Neeli <srinivas.neeli@....com>,
Michal Simek <michal.simek@....com>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-aspeed@...ts.ozlabs.org,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH 0/4] gpio: Simplify with of_device_get_match_data()
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@...aro.org>
Powered by blists - more mailing lists