]> git.karo-electronics.de Git - karo-tx-linux.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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:51 +0000 (21:16 -0600)
commit062cf7babfd6bb508d1c06de909af5f5da87072c
tree5d1c1861c6a2c11e0e8bc80950892aabd003beb0
parentbec8526502ae58775517202ada6bc0d3c80d4e28
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>
(cherry picked from commit 171d683d2ac4ab6f220cc99de08ef9ec2c039966)
sound/soc/fsl/fsl_ssi.c