Merge "msm: camera: cpas: Setting the vote level on max supported clock lvl basis" into camera-kernel.lnx.3.1

This commit is contained in:
Camera Software Integration authored and Gerrit - the friendly Code Review server committed 2020-03-23 12:28:09 -07:00
commit 84f424ba7c
1 file changed
+5 -3
+5 -3
View File
@@ -62,9 +62,11 @@ static int cam_cpas_util_vote_bus_client_level(
return -EINVAL;
}
if (level >= bus_client->num_usecases) {
CAM_ERR(CAM_CPAS, "Invalid vote level=%d, usecases=%d", level,
bus_client->num_usecases);
if (level >= CAM_MAX_VOTE) {
CAM_ERR(CAM_CPAS,
"Invalid votelevel=%d,usecases=%d,Bus client=[%d][%s]",
level, bus_client->num_usecases,
bus_client->client_id, bus_client->name);
return -EINVAL;
}