]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: rfkill: gpio: add DT support
authorPhilipp Zabel <p.zabel@pengutronix.de>
Sun, 21 Sep 2025 23:29:57 +0000 (19:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 08:58:55 +0000 (10:58 +0200)
commit9ccec4f5c25e312d44a07ad04ecbcd183c92b083
treef472498a38a1a63b8d8d6b525ba66a15ce37e9c9
parentff160500c499e92e649103091bbabcb2ac4b4f96
net: rfkill: gpio: add DT support

[ Upstream commit d64c732dfc9edcd57feb693c23162117737e426b ]

Allow probing rfkill-gpio via device tree. This hooks up the already
existing support that was started in commit 262c91ee5e52 ("net:
rfkill: gpio: prepare for DT and ACPI support") via the "rfkill-gpio"
compatible, with the "name" and "type" properties renamed to "label"
and "radio-type", respectively, in the device tree case.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20230102-rfkill-gpio-dt-v2-2-d1b83758c16d@pengutronix.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Stable-dep-of: b6f56a44e4c1 ("net: rfkill: gpio: Fix crash due to dereferencering uninitialized pointer")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rfkill/rfkill-gpio.c