OSDN Git Service

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)
commitb2f3e0c9e4ee2e07fd880cc0c4da20c42d633d4b
treefcc120a5153bcabd0104230260a16ce6a410c92a
parent8d92bb516831e80fac916701447ee6e9f0a6f0f2
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: cac974a51ebb ("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