* alternative limits initialized.
*/
if (c->dvfs->alt_freqs)
- return -ENOSYS;
+ return -EINVAL;
return predict_non_alt_millivolts(c, millivolts, rate);
}
* initialized.
*/
if (c->dvfs->alt_freqs)
- return -ENOSYS;
+ return -EINVAL;
for (i = 0; i < c->dvfs->num_freqs; i++) {
rate = c->dvfs->freqs[i];
const int *millivolts;
if (!c->dvfs)
- return 0;
+ return -ENODATA;
if ((c->dvfs->dvfs_rail == tegra_gpu_rail) ||
(c->dvfs->dvfs_rail == tegra_cpu_rail)) {
struct dvfs_rail *rail;
if (!c->dvfs)
- return 0;
+ return -ENODATA;
rail = c->dvfs->dvfs_rail;
const int *millivolts;
if (!c->dvfs)
- return 0;
+ return -ENODATA;
millivolts = dvfs_get_peak_millivolts(c->dvfs, rate);
mv = predict_non_alt_millivolts(c, millivolts, rate);
bool suspended;
if (!c->dvfs)
- return -EINVAL;
+ return -ENODATA;
suspended = timekeeping_suspended && c->dvfs->dvfs_rail->suspended;
if (suspended) {
int tegra_dvfs_get_freqs(struct clk *c, unsigned long **freqs, int *num_freqs)
{
if (!c->dvfs)
- return -ENOSYS;
+ return -ENODATA;
if (c->dvfs->alt_freqs)
- return -ENOSYS;
+ return -EINVAL;
*num_freqs = c->dvfs->num_freqs;
*freqs = c->dvfs->freqs;