]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl-ssi: Remove unnecessary variables from ssi_private
authorMarkus Pargmann <mpa@pengutronix.de>
Mon, 28 Apr 2014 10:54:48 +0000 (12:54 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 20 May 2014 22:02:46 +0000 (23:02 +0100)
commit38c89547b7c37a51f317f3951fb5f293f90e095d
treee6202c3334c5b58e26d8d79b2d836bff9e733a73
parent764f53d1174b7e9e17223f5adccec3c864c882b7
ASoC: fsl-ssi: Remove unnecessary variables from ssi_private

There are some variables defined in struct fsl_ssi_private that describe
states that are also described by other variables.

This patch adds some helper functions that return exactly the same
information based on available variables. This helps to clean up struct
fsl_ssi_private and remove them from the probe function.

It also removes some not really used variables (new_binding, name).

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Tested-By: Michael Grzeschik <mgr@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_ssi.c