ASoC: rt298: Make rt298_index_def const
authorAxel Lin <axel.lin@ingics.com>
Mon, 5 Oct 2015 13:23:48 +0000 (21:23 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 16 Oct 2015 17:13:35 +0000 (18:13 +0100)
commit3943b9efb381531b99bf9c545736f9e1e2715b9c
tree8d60bc6a54082932150f869dc5112de197c9e412
parenta5fe58fd2836987387a6ee8854c529db7f5be650
ASoC: rt298: Make rt298_index_def const

The index_cache is per instance run time state but rt298_index_def is not.
Make rt298_index_def const and make a copy of memory for index_cache rather
than directly use the rt298_index_def.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt298.c