net: rfkill: gpio: add DT support
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 2 Jan 2023 17:29:34 +0000 (18:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jan 2023 10:07:01 +0000 (11:07 +0100)
commitd64c732dfc9edcd57feb693c23162117737e426b
tree986e800fb396ce7fa9863babfd681401f15e74c0
parent50071fdf0882a0449328c967f282ad7444d194bb
net: rfkill: gpio: add DT support

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>
net/rfkill/rfkill-gpio.c