]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: topology: fix get control data return type and arguments
authorJaska Uimonen <jaska.uimonen@intel.com>
Wed, 21 Aug 2019 21:11:38 +0000 (00:11 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2019 17:32:16 +0000 (18:32 +0100)
commit4762d71f2866f0c0ad36f079d70ea8fb068fb1ca
treefcc120a5153bcabd0104230260a16ce6a410c92a
parentde74f403f65f3e62a8f62456068f22082de30b05
ASoC: SOF: topology: fix get control data return type and arguments

sof_get_control_data returns negative values even though the return
value is defined unsigned (size_t). So change the return value type to
int and add the data size as pointer argument to sof_get_control_data to
avoid ambiquity in the meaning of the return type.

Fixes: c51f2e9be6d0 ("ASoC: SOF: topology: use set_get_data in process load")
Reported by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Link: https://lore.kernel.org/r/20190821211138.14618-1-jaska.uimonen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c