RE: [PATCH] net: Use of_property_read_bool() for boolean properties

From: Wei Fang
Date: Mon Mar 13 2023 - 22:12:39 EST


> -----Original Message-----
> From: Rob Herring <robh@xxxxxxxxxx>
> Sent: 2023年3月10日 22:47
> To: Wolfgang Grandegger <wg@xxxxxxxxxxxxxx>; Marc Kleine-Budde
> <mkl@xxxxxxxxxxxxxx>; David S. Miller <davem@xxxxxxxxxxxxx>; Eric
> Dumazet <edumazet@xxxxxxxxxx>; Jakub Kicinski <kuba@xxxxxxxxxx>; Paolo
> Abeni <pabeni@xxxxxxxxxx>; Nicolas Ferre <nicolas.ferre@xxxxxxxxxxxxx>;
> Claudiu Beznea <claudiu.beznea@xxxxxxxxxxxxx>; Wei Fang
> <wei.fang@xxxxxxx>; Shenwei Wang <shenwei.wang@xxxxxxx>; Clark Wang
> <xiaoning.wang@xxxxxxx>; dl-linux-imx <linux-imx@xxxxxxx>; Claudiu
> Manoil <claudiu.manoil@xxxxxxx>; Giuseppe Cavallaro
> <peppe.cavallaro@xxxxxx>; Alexandre Torgue <alexandre.torgue@xxxxxxxxxxx>;
> Jose Abreu <joabreu@xxxxxxxxxxxx>; Shawn Guo <shawnguo@xxxxxxxxxx>;
> Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>; Pengutronix Kernel Team
> <kernel@xxxxxxxxxxxxxx>; Fabio Estevam <festevam@xxxxxxxxx>; Maxime
> Coquelin <mcoquelin.stm32@xxxxxxxxx>; Grygorii Strashko
> <grygorii.strashko@xxxxxx>; Francois Romieu <romieu@xxxxxxxxxxxxx>; Michal
> Simek <michal.simek@xxxxxxxxxx>; Qiang Zhao <qiang.zhao@xxxxxxx>; Kalle
> Valo <kvalo@xxxxxxxxxx>; Samuel Mendoza-Jonas <sam@xxxxxxxxxxxxxxxx>
> Cc: devicetree@xxxxxxxxxxxxxxx; linux-can@xxxxxxxxxxxxxxx;
> netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
> linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx;
> linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-omap@xxxxxxxxxxxxxxx;
> linuxppc-dev@xxxxxxxxxxxxxxxx; linux-wireless@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxx>
> ---
> drivers/net/ethernet/freescale/fec_main.c | 2 +-

Reviewed-by: Wei Fang <wei.fang@xxxxxxx>