[PATCH] pmdomain: mediatek: Use devm_platform_get_and_ioremap_resource() in init_scp()

Markus Elfring Markus.Elfring at web.de
Mon Feb 5 22:48:07 PST 2024


…
>> I got another idea after looking at the implementation of the function
>> “devm_platform_get_and_ioremap_resource” once more.
>> https://elixir.bootlin.com/linux/v6.8-rc3/source/drivers/base/platform.c#L87
…
> Yes, you can pass a NULL pointer as the last parameter.

Would you like to support any approaches which can make interface descriptions clearer
for such an implementation detail?


> And as this is very common, the wrapper devm_platform_ioremap_resource() exists.

I find further collateral evolution interesting for the involved parameter reduction.

Regards,
Markus



More information about the linux-arm-kernel mailing list