[PATCH 7/9] net: mdio: mdio-bcm-iproc: simplify getting .driver_data

Wolfram Sang wsa+renesas at sang-engineering.com
Mon Sep 20 22:52:19 PDT 2021


> The change looks good to me, however if you change from
> platform_get_drvdata() to dev_get_drvdata(), you might also want to
> change from using platform_set_drvdata() to dev_set_drvdata() for
> symmetry no? If not, then maybe this patch should be dropped?

In theory, yes. However, I haven't finished the coccinelle script yet
because there are a lot more usage patterns. I can do this individually
for this driver first if you want.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210921/62839ac1/attachment.sig>


More information about the linux-arm-kernel mailing list