---
name: "regulator_get"
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_get"
---

# regulator\_get(9)

lookup and obtain a reference to a regulator.

## NAME

regulator\_get - lookup and obtain a reference to a regulator.

## SYNOPSIS

**struct regulator \* regulator\_get(struct device \*** *dev***, const char \*** *id***);**

## ARGUMENTS

*dev*

device for regulator “consumer”

*id*

Supply name or regulator ID.

## DESCRIPTION

Returns a struct regulator corresponding to the regulator producer, or **IS\_ERR** condition containing errno.

Use of supply names configured via **regulator\_set\_device\_supply** is strongly encouraged. It is recommended that the supply name used should match the name used for the supply and/or the relevant device pins in the datasheet.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
