The cached clocked rate isn't used anywhere, so there's no need to store it.
unsigned int idx;
unsigned long min;
unsigned long max;
unsigned int idx;
unsigned long min;
unsigned long max;
unsigned long startup;
};
unsigned long startup;
};
if ((tab_idx < 0) || (tab_idx >= rtab->count) || (rtab->rset[tab_idx].rate != rate))
return -EINVAL;
if ((tab_idx < 0) || (tab_idx >= rtab->count) || (rtab->rset[tab_idx].rate != rate))
return -EINVAL;
- rtcl_ccu->clks[clk->idx].rate = rate;
-
switch (rtcl_ccu->soc) {
case RTCL_SOC838X:
return rtcl_838x_set_rate(clk->idx, &rtab->rset[tab_idx]);
switch (rtcl_ccu->soc) {
case RTCL_SOC838X:
return rtcl_838x_set_rate(clk->idx, &rtab->rset[tab_idx]);