regulator_get(9)

regulator_get9

Lookup and obtain a reference to a regulator.

Usage

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

Arguments

dev

device for regulator “consumer”

id

Supply name or regulator ID.

Overview

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.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

Authors

Liam Girdwood <[email protected]>

Author.

Mark Brown <[email protected]>
Wolfson Microelectronics,

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.