Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: codecs: wm0010: use DECLARE_COMPLETION_ONSTACK() macro

Follow recommendation in Documentation/scheduler/completion.rst and
use macro to declare local 'struct completion'

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200813175442.59067-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Pierre-Louis Bossart and committed by
Mark Brown
093513b8 6bc37d32

+1 -2
+1 -2
sound/soc/codecs/wm0010.c
··· 346 346 struct list_head xfer_list; 347 347 struct wm0010_boot_xfer *xfer; 348 348 int ret; 349 - struct completion done; 349 + DECLARE_COMPLETION_ONSTACK(done); 350 350 const struct firmware *fw; 351 351 const struct dfw_binrec *rec; 352 352 const struct dfw_inforec *inforec; ··· 370 370 wm0010->boot_failed = false; 371 371 if (WARN_ON(!list_empty(&xfer_list))) 372 372 return -EINVAL; 373 - init_completion(&done); 374 373 375 374 /* First record should be INFO */ 376 375 if (rec->command != DFW_CMD_INFO) {