SysTutorials

Linux Manual Pages › Section 9

regulator_is_enabled(9)

regulator_is_enabled – is the regulator output enabled

Synopsis

int regulator_is_enabled(struct regulator *regulator);

Arguments

regulator

regulator source

Description

Returns positive if the regulator driver backing the source/client has requested that the device be enabled, zero if it hasn’t, else a negative errno code.

Note that the device backing this regulator handle can have multiple users, so it might be enabled even if regulator_enable was never called for this particular source.

Authors

Liam Girdwood <lrg [at] slimlogic.co.uk>

Author.

Mark Brown <broonie [at] opensource.wolfsonmicro.com>
Wolfson Microelectronics,

  

Author.

Copyright