---
name: "regulator_count_voltages"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/regulator_count_voltages"
---

# regulator\_count\_voltages(9)

count regulator\_list\_voltage selectors

## NAME

regulator\_count\_voltages - count **regulator\_list\_voltage** selectors

## SYNOPSIS

**int regulator\_count\_voltages(struct regulator \*** *regulator***);**

## ARGUMENTS

*regulator*

regulator source

## DESCRIPTION

Returns number of selectors, or negative errno. Selectors are numbered starting at zero, and typically correspond to bitfields in hardware registers.

## AUTHORS

**Liam Girdwood** \<lrg@slimlogic.co.uk\>

Author.

**Mark Brown** \<broonie@opensource.wolfsonmicro.com\>\
 Wolfson Microelectronics,

Author.

## COPYRIGHT
