regulator_set_mode
Prev | Chapter 5. API reference | Next

## Name

regulator_set_mode — set regulator operating mode

## Synopsis

`int regulator_set_mode (` | struct regulator * regulator,
| unsigned int mode`)`;

## Arguments

`regulator`

  regulator source

`mode`

  operating mode - one of the REGULATOR_MODE constants

## Description

Set regulator operating mode to increase regulator efficiency or improve regulation performance.

## NOTE

Regulator system constraints must be set for this regulator before calling this function otherwise this call will fail.

Prev | Up | Next
regulator_get_current_limit | Home | regulator_get_mode