diff options
author | 2017-04-23 20:20:33 -0300 | |
---|---|---|
committer | 2017-04-24 18:45:18 +0100 | |
commit | 8f7206d69ab8c8fb8620566338d54c4b9b80477a (patch) | |
tree | 9a32136575eb08a63d2b535e772a6991e2721334 /sound/soc/intel/boards/bytcr_rt5640.c | |
parent | ASoC: imx-wm8962: Fix codec_clk cleanup (diff) | |
download | linux-dev-8f7206d69ab8c8fb8620566338d54c4b9b80477a.tar.xz linux-dev-8f7206d69ab8c8fb8620566338d54c4b9b80477a.zip |
ASoC: imx-wm8962: Remove global variables
Currently the following variables are global:
- card_priv, sample_rate and sample_format
,which is not a good idea as it prevents the usage of multiple
instances.
Make sample_rate and sample_format part of the imx_priv structure
and allocate imx_priv via the standard devm_kzalloc() mechanism
inside the probe function.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/bytcr_rt5640.c')
0 files changed, 0 insertions, 0 deletions