Re: [PATCH v2 2/2] ASoC: soc-pcm: makes snd_soc_dpcm_can_be_xxx() local function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mark

> > No driver is calling snd_soc_dpcm_can_be_xxx() functions. We don't need
> > to have EXPORT_SYMBOL_GPL() for them. Let's makes it static function.
> > One note is that snd_soc_dpcm_fe_can_update() is not used in upstream.
> > Use #if-endif and keep it for future support.
> 
> We should just delete the code if it's not needed, it can always be
> re-added later.

Thanks.
The reason why this patch try to keep the code is that 2 functions
(for fe/be) determination methods are unique. But be is used, fe is not
used.

	snd_soc_dpcm_fe_can_update()
	snd_soc_dpcm_be_can_update()

Of cource we can remove it and re-added later, but I'm afraid the person
who will re-add it might not noticed that there was a code before, and
re-add different determination methods, etc.
To avoid such things, this patch disables it by #if-endif.

But I can post v3 patch which doesn't have unneeded code.
Please let me know which one is better.

Thank you for your help !!

Best regards
---
Kuninori Morimoto



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux