]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5651: Make rt5651_apply_properties() private
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Mar 2018 14:35:49 +0000 (15:35 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Mar 2018 12:40:14 +0000 (12:40 +0000)
commit6aa8685d4765d135a3f289dc1defc884d4707c21
tree84e5a27c510eee39adcadfe25d3063224f5035ac
parent35a387723bcb9f24a6c7655a263b14ec6ea7818e
ASoC: rt5651: Make rt5651_apply_properties() private

The idea behind exporting rt5651_apply_properties(), was for it to be used
on platforms where the platform code may need to add device-properties,
rather then relying only on properties set by the firmware. The platform
code could then call rt5651_apply_properties() after adding properties to
make sure that the codec driver was aware of the new properties.

But this is not necessary, as long as we do all property parsing from
the codec component-driver's probe function (or later) then the machine
driver can attach properties before calling snd_soc_register_card and
calling rt5651_apply_properties() for ordering reasons is not necessary.

This commit makes rt5651_apply_properties() private and adds 2 comments
documenting that all property parsing must be done from the codec
component-driver's probe function.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c
sound/soc/codecs/rt5651.h