[PATCH] net: Use of_property_read_bool() for boolean properties
Wei Fang
wei.fang at nxp.com
Mon Mar 13 19:12:25 PDT 2023
> -----Original Message-----
> From: Rob Herring <robh at kernel.org>
> Sent: 2023年3月10日 22:47
> To: Wolfgang Grandegger <wg at grandegger.com>; Marc Kleine-Budde
> <mkl at pengutronix.de>; David S. Miller <davem at davemloft.net>; Eric
> Dumazet <edumazet at google.com>; Jakub Kicinski <kuba at kernel.org>; Paolo
> Abeni <pabeni at redhat.com>; Nicolas Ferre <nicolas.ferre at microchip.com>;
> Claudiu Beznea <claudiu.beznea at microchip.com>; Wei Fang
> <wei.fang at nxp.com>; Shenwei Wang <shenwei.wang at nxp.com>; Clark Wang
> <xiaoning.wang at nxp.com>; dl-linux-imx <linux-imx at nxp.com>; Claudiu
> Manoil <claudiu.manoil at nxp.com>; Giuseppe Cavallaro
> <peppe.cavallaro at st.com>; Alexandre Torgue <alexandre.torgue at foss.st.com>;
> Jose Abreu <joabreu at synopsys.com>; Shawn Guo <shawnguo at kernel.org>;
> Sascha Hauer <s.hauer at pengutronix.de>; Pengutronix Kernel Team
> <kernel at pengutronix.de>; Fabio Estevam <festevam at gmail.com>; Maxime
> Coquelin <mcoquelin.stm32 at gmail.com>; Grygorii Strashko
> <grygorii.strashko at ti.com>; Francois Romieu <romieu at fr.zoreil.com>; Michal
> Simek <michal.simek at xilinx.com>; Qiang Zhao <qiang.zhao at nxp.com>; Kalle
> Valo <kvalo at kernel.org>; Samuel Mendoza-Jonas <sam at mendozajonas.com>
> Cc: devicetree at vger.kernel.org; linux-can at vger.kernel.org;
> netdev at vger.kernel.org; linux-kernel at vger.kernel.org;
> linux-stm32 at st-md-mailman.stormreply.com;
> linux-arm-kernel at lists.infradead.org; linux-omap at vger.kernel.org;
> linuxppc-dev at lists.ozlabs.org; linux-wireless at vger.kernel.org
> Subject: [PATCH] net: Use of_property_read_bool() for boolean properties
>
> It is preferred to use typed property access functions (i.e.
> of_property_read_<type> functions) rather than low-level
> of_get_property/of_find_property functions for reading properties.
> Convert reading boolean properties to to of_property_read_bool().
>
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
> drivers/net/ethernet/freescale/fec_main.c | 2 +-
Reviewed-by: Wei Fang <wei.fang at nxp.com>
More information about the linux-arm-kernel
mailing list