Searched refs:vcount (Results 1 - 1 of 1) sorted by relevance
/device/soc/rockchip/common/sdk_linux/drivers/opp/ |
H A D | of.c | 498 int supplies = opp_table->regulator_count, vcount, icount, ret, i, j; in opp_parse_supplies() local 537 vcount = of_property_count_u32_elems(opp->np, name); in opp_parse_supplies() 538 if (vcount < 0) { in opp_parse_supplies() 539 dev_err(dev, "%s: Invalid %s property (%d)\n", __func__, name, vcount); in opp_parse_supplies() 540 return vcount; in opp_parse_supplies() 544 if (vcount != supplies && vcount != supplies * REGULATOR_COUNT_MUL) { in opp_parse_supplies() 545 dev_err(dev, "%s: Invalid number of elements in %s property (%d) with supplies (%d)\n", __func__, name, vcount, in opp_parse_supplies() 550 microvolt = kmalloc_array(vcount, sizeof(*microvolt), GFP_KERNEL); in opp_parse_supplies() 555 ret = of_property_read_u32_array(opp->np, name, microvolt, vcount); in opp_parse_supplies() [all...] |
Completed in 2 milliseconds