ASoC: wm_adsp: mark more data structures with the const qualifier
authorSimon Trimmer <simont@opensource.cirrus.com>
Tue, 11 May 2021 17:14:59 +0000 (18:14 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 12 May 2021 12:02:51 +0000 (13:02 +0100)
commit130dbe04d42817b62577a48346837122a00e794f
tree4d54432a1a418c1c4d6f439f3f27f3f1ce002a37
parent4ac9b48adf4d561d0e33419d548278f205dd70b5
ASoC: wm_adsp: mark more data structures with the const qualifier

The callback structures and memory region type table can be marked as
const as they will not change during use.

Fix checkpatch warning against wm_adsp_find_region function by moving
const keyword to form the 'static const struct' pattern.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210511171459.270169-1-simont@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h