]> 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)
commit70a7d2686a779d62adfbfee3f7c8d022e7748cfc
treee6202c3334c5b58e26d8d79b2d836bff9e733a73
parent50ab8edf5a25b4f58dbccebed87cd5f92b8f938a
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