---
name: "regulator_list_hardware_vsel"
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_list_hardware_vsel"
---

# regulator\_list\_hardware\_vsel(9)

get the HW-specific register value for a selector

## NAME

regulator\_list\_hardware\_vsel - get the HW-specific register value for a selector

## SYNOPSIS

**int regulator\_list\_hardware\_vsel(struct regulator \*** *regulator***, unsigned** *selector***);**

## ARGUMENTS

*regulator*

regulator source

*selector*

identify voltage to list

## DESCRIPTION

Converts the selector to a hardware-specific voltage selector that can be directly written to the regulator registers. The address of the voltage register can be determined by calling *regulator\_get\_hardware\_vsel\_register*.

On error a negative errno is returned.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
