regulator_count_voltages 用法regulator_count_voltages()函数的作用是获取一个电压调节器(regulator)支持的电压通道数。在嵌入式系统中,电压调节器(regulator)用于提供电源电压给各个设备或模块,以满足其工作的电压需求。电压调节器可以是硬件电路或软件实现,用于稳定和调整电源电压。 以上信息仅供参考,具体细节可以咨询...
error_vdd:while(--i >=0) {if(!IS_ERR_OR_NULL(bmp_vreg[i].vreg)) {if(regulator_count_voltages( bmp_vreg[i].vreg) >0) { regulator_set_voltage(bmp_vreg[i].vreg,0, bmp_vreg[i].max_uV); } regulator_disable(bmp_vreg[i].vreg); regulator_put(bmp_vreg[i].vreg); bmp_vreg[i...
if (regulator_common_get_min_voltage(dev, volt_uv) < 0) { return -EINVAL; }return 0; }static const struct regulator_driver_api regulator_fixed_api = { .enable = regulator_fixed_enable, .disable = regulator_fixed_disable, .count_voltages = regulator_fixed_count_voltages,...
deconfig_vreg:if(regulator_count_voltages(data->vdd_i2c) >0) regulator_set_voltage(data->vdd_i2c,0, DRV2667_I2C_VTG_MAX_UV); put_vdd_i2c: regulator_put(data->vdd_i2c); reset_vdd_volt:if(regulator_count_voltages(data->vdd) >0) regulator_set_voltage(data->vdd,0, DRV2667_VTG_MAX_...