---
name: "regulator_set_mode"
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_set_mode"
---

# regulator\_set\_mode(9)

set regulator operating mode

## 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.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
