]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: creg-snps: Simplify with device_get_match_data()
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Fri, 19 Dec 2025 12:13:13 +0000 (13:13 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 22 Dec 2025 16:57:35 +0000 (17:57 +0100)
commitda7c18a457c7a32c4ed1e1e326837d9d7cb4483c
treefbd1fa189c58b3491229354aca2749d721814256
parentcecf10b700e06a2f2e2b638b1f680e1ae7f343ac
gpio: creg-snps: Simplify with device_get_match_data()

Driver's probe function matches against driver's of_device_id table,
where each entry has non-NULL match data, so of_match_node() can be
simplified with device_get_match_data().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251219-gpio-of-match-v3-2-6b84194a02a8@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-creg-snps.c