REGULATOR_GET_HARDWA(9) | API reference | REGULATOR_GET_HARDWA(9) |
NAME¶
regulator_get_hardware_vsel_register - get the HW voltage selector register
SYNOPSIS¶
int regulator_get_hardware_vsel_register(struct regulator * regulator, unsigned * vsel_reg, unsigned * vsel_mask);
ARGUMENTS¶
regulator
vsel_reg
vsel_mask
DESCRIPTION¶
Returns the hardware register offset and bitmask used for setting the regulator voltage. This might be useful when configuring voltage-scaling hardware or firmware that can make I2C requests behind the kernel's back, for example.
On success, the output parameters vsel_reg and vsel_mask are filled in and 0 is returned, otherwise a negative errno is returned.
AUTHORS¶
Liam Girdwood <lrg@slimlogic.co.uk>
Mark Brown <broonie@opensource.wolfsonmicro.com>
Wolfson Microelectronics,
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |