[PATCH] driver core: platform: Rename platform_get_irq_optional() to platform_get_irq_silent()
Peter Korsgaard
peter at korsgaard.com
Fri Jan 14 07:57:06 CET 2022
>>>>> "Uwe" == Uwe Kleine-König <u.kleine-koenig at pengutronix.de> writes:
> The subsystems regulator, clk and gpio have the concept of a dummy
> resource. For regulator, clk and gpio there is a semantic difference
> between the regular _get() function and the _get_optional() variant.
> (One might return the dummy resource, the other won't. Unfortunately
> which one implements which isn't the same for these three.) The
> difference between platform_get_irq() and platform_get_irq_optional() is
> only that the former might emit an error message and the later won't.
> To prevent people's expectations that there is a semantic difference
> between these too, rename platform_get_irq_optional() to
> platform_get_irq_silent() to make the actual difference more obvious.
> The #define for the old name can and should be removed once all patches
> currently in flux still relying on platform_get_irq_optional() are
> fixed.
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
For i2c-ocores.c:
Acked-by: Peter Korsgaard <peter at korsgaard.com>
--
Bye, Peter Korsgaard
More information about the Alsa-devel
mailing list