mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
Merge "msm: camera: cpas: Setting the vote level on max supported clock lvl basis" into camera-kernel.lnx.4.0
This commit is contained in:
commit
2362ce706a
1 changed files with 8 additions and 0 deletions
|
|
@ -122,6 +122,14 @@ static int cam_cpas_util_vote_bus_client_level(
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (level >= CAM_MAX_VOTE) {
|
||||
CAM_ERR(CAM_CPAS,
|
||||
"Invalid votelevel=%d,usecases=%d,Bus client=[%s]",
|
||||
level, bus_client->common_data.num_usecases,
|
||||
bus_client->common_data.name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (level == bus_client->curr_vote_level)
|
||||
goto end;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue