[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aTKJLAZaPjEcS17l@stanley.mountain>
Date: Fri, 5 Dec 2025 10:26:36 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Julioccps <julio191096@...il.com>
Cc: hvaibhav.linux@...il.com, johan@...nel.org, elder@...nel.org,
gregkh@...uxfoundation.org, greybus-dev@...ts.linaro.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] staging: greybus: arche-apb-ctrl: switch to
device_property_read_bool
On Thu, Dec 04, 2025 at 08:11:10PM -0300, Julioccps wrote:
> 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@...il.com>
This doesn't match your From header.
> ---
> hanges in v3:
> - Added version history (changelog) required by the subsystem maintainer.
>
> Changes in v2:
> - Updated the subject line to match the subsystem standard.
> - Updated Signed-off-by to use full real name.
>
> drivers/staging/greybus/arche-apb-ctrl.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c
> index 90ab32638d3f..eea9648a461c 100644
> --- a/drivers/staging/greybus/arche-apb-ctrl.c
> +++ b/drivers/staging/greybus/arche-apb-ctrl.c
> @@ -10,13 +10,14 @@
> #include <linux/delay.h>
> #include <linux/gpio/consumer.h>
> #include <linux/interrupt.h>
> -#include <linux/of_irq.h>
> #include <linux/module.h>
> #include <linux/pinctrl/consumer.h>
> #include <linux/platform_device.h>
> #include <linux/pm.h>
> +#include <linux/property.h>
> #include <linux/regulator/consumer.h>
> #include <linux/spinlock.h>
> +#include <linux/mod_devicetable.h>
> #include "arche_platform.h"
>
> static void apb_bootret_deassert(struct device *dev);
> @@ -314,7 +315,7 @@ static ssize_t state_show(struct device *dev,
>
> static DEVICE_ATTR_RW(state);
>
> -static int apb_ctrl_get_devtree_data(struct platform_device *pdev,
> +static int apb_ctrl_get_fw_data(struct platform_device *pdev,
> struct arche_apb_ctrl_drvdata *apb)
^^
This line needs to be indented differently now.
> {
> struct device *dev = &pdev->dev;
regards,
dan carpenter
Powered by blists - more mailing lists