ASoC: arizona: Add data structure for voice trigger notifier
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 31 May 2016 11:44:17 +0000 (12:44 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 31 May 2016 13:35:49 +0000 (14:35 +0100)
commit546ad3d024fd47e5042d80ae1dc4c7d1b00912a7
tree67df210c278996a980c5b4411d32e450b0021839
parent7baa7e2490e1c292a84406c90089511c96ce3114
ASoC: arizona: Add data structure for voice trigger notifier

64-bit builds would generate a warning when we passed the core number as
a pointer through the notifier data:

sound/soc/codecs/cs47l24.c:1091:13: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
             (void *)i);

Rather than just fix this up with more casting add a data structure that
holds information for the notifier chain. This will make it easier to
add additional information in the future as well.

Fixes: 7baa7e2490e1 ("ASoC: arizona: Add event notification on voice trigger events")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.h
sound/soc/codecs/cs47l24.c
sound/soc/codecs/wm5110.c