On Tue, Apr 30, 2024 at 04:09:38PM +0200, Krzysztof Kozlowski wrote: > -#define snd_soc_substream_to_rtd(substream) \ > - (struct snd_soc_pcm_runtime *)snd_pcm_substream_chip(substream) > + > +static inline struct snd_soc_pcm_runtime * > +snd_soc_substream_to_rtd(const struct snd_pcm_substream *substream) > +{ > + return substream->private_data; > +} This is not an obvious direct substitution, we've skipped the snd_pcm_subsystem_chip() (which is also a macro, but that just suggests it could do with it's own cleanup) and the commit log didn't mention it.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] ASoC: use inline function for type safety in snd_soc_substream_to_rtd()
- From: Krzysztof Kozlowski
- Re: [PATCH] ASoC: use inline function for type safety in snd_soc_substream_to_rtd()
- References:
- [PATCH] ASoC: use inline function for type safety in snd_soc_substream_to_rtd()
- From: Krzysztof Kozlowski
- [PATCH] ASoC: use inline function for type safety in snd_soc_substream_to_rtd()
- Prev by Date: Re: [PATCH v7 01/12] timekeeping: Add base clock properties in clocksource structure
- Next by Date: Re: [PATCH] ASoC: use inline function for type safety in snd_soc_substream_to_rtd()
- Previous by thread: [PATCH] ASoC: use inline function for type safety in snd_soc_substream_to_rtd()
- Next by thread: Re: [PATCH] ASoC: use inline function for type safety in snd_soc_substream_to_rtd()
- Index(es):