]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99374a8341781675f293edf377d4c831bcc08383
tree4d54432a1a418c1c4d6f439f3f27f3f1ce002a37
parent0634493c04432bca28bc4a6c529d75595e718d90
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