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)
commit171d683d2ac4ab6f220cc99de08ef9ec2c039966
treee6202c3334c5b58e26d8d79b2d836bff9e733a73
parent4d9b7926f2ce271e0670cf0e7131a0e2a686690a
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