]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5640: Move checking of device-properties to component probe callback
authorHans de Goede <hdegoede@redhat.com>
Tue, 8 May 2018 15:35:49 +0000 (17:35 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 11 May 2018 02:22:50 +0000 (11:22 +0900)
commitaf51597aa32072de5f4153194ac14d43246761be
tree506de9c50cdd3c96451dac1255f5cdb7121c15a8
parent911f7065ceb3f5e2d94c51858995928ca7aa99f1
ASoC: rt5640: Move checking of device-properties to component probe callback

On some platforms the platform code may need to add device-properties,
rather then relying only on properties set by the firmware.

This commit moves the parsing of the device-properties from the i2c-driver
probe() function, which may be called at any time, to the component-driver
probe() function, which gets called after the platform code calls
snd_soc_register_card().

This allows the platform code to attach extra device-properties before
the device-properties are parsed.

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