]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: greybus: arche-apb-ctrl: switch to device_property_read_bool
authorJulio Cesar Carvalho de Paula Souza <julio191096@gmail.com>
Fri, 5 Dec 2025 11:21:38 +0000 (08:21 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 13:10:02 +0000 (14:10 +0100)
commit1b92242888d7162dcd80efe907685394012e9565
tree07b67428cc431ed300769febf64a9029da649110
parent2038fe84b8bdf894b634f777096685e78e8f3774
staging: greybus: arche-apb-ctrl: switch to device_property_read_bool

Switch from the deprecated of_property_read_bool() to the common
device_property_read_bool() API. This makes the driver agnostic to
the underlying firmware interface (DT or ACPI) and simplifies the
logic.

Since the driver is no longer strictly dependent on Device Tree,
include <linux/mod_devicetable.h> directly for the struct
of_device_id definition, instead of relying on implicit inclusion
via <linux/of_irq.h>, which has been removed as it is unused.

Also rename apb_ctrl_get_devtree_data() to apb_ctrl_get_fw_data()
to better reflect the agnostic nature of the new implementation.

Signed-off-by: Julio Cesar Carvalho de Paula Souza <julio191096@gmail.com>
Link: https://patch.msgid.link/20251205112138.3431-1-julio191096@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/arche-apb-ctrl.c