Merge remote-tracking branches 'regulator/topic/anatop', 'regulator/topic/disable', 'regulator/topic/dummy' and 'regulator/topic/gpio' into regulator-next
This commit is contained in:
commit
af012d6278
13 changed files with 109 additions and 45 deletions
|
|
@ -101,6 +101,8 @@ struct regmap;
|
|||
* Data passed is "struct pre_voltage_change_data"
|
||||
* ABORT_VOLTAGE_CHANGE Regulator voltage change failed for some reason.
|
||||
* Data passed is old voltage cast to (void *).
|
||||
* PRE_DISABLE Regulator is about to be disabled
|
||||
* ABORT_DISABLE Regulator disable failed for some reason
|
||||
*
|
||||
* NOTE: These events can be OR'ed together when passed into handler.
|
||||
*/
|
||||
|
|
@ -115,6 +117,8 @@ struct regmap;
|
|||
#define REGULATOR_EVENT_DISABLE 0x80
|
||||
#define REGULATOR_EVENT_PRE_VOLTAGE_CHANGE 0x100
|
||||
#define REGULATOR_EVENT_ABORT_VOLTAGE_CHANGE 0x200
|
||||
#define REGULATOR_EVENT_PRE_DISABLE 0x400
|
||||
#define REGULATOR_EVENT_ABORT_DISABLE 0x800
|
||||
|
||||
/**
|
||||
* struct pre_voltage_change_data - Data sent with PRE_VOLTAGE_CHANGE event
|
||||
|
|
|
|||
|
|
@ -301,6 +301,9 @@ struct regulator_desc {
|
|||
* NULL).
|
||||
* @regmap: regmap to use for core regmap helpers if dev_get_regulator() is
|
||||
* insufficient.
|
||||
* @ena_gpio_initialized: GPIO controlling regulator enable was properly
|
||||
* initialized, meaning that >= 0 is a valid gpio
|
||||
* identifier and < 0 is a non existent gpio.
|
||||
* @ena_gpio: GPIO controlling regulator enable.
|
||||
* @ena_gpio_invert: Sense for GPIO enable control.
|
||||
* @ena_gpio_flags: Flags to use when calling gpio_request_one()
|
||||
|
|
@ -312,6 +315,7 @@ struct regulator_config {
|
|||
struct device_node *of_node;
|
||||
struct regmap *regmap;
|
||||
|
||||
bool ena_gpio_initialized;
|
||||
int ena_gpio;
|
||||
unsigned int ena_gpio_invert:1;
|
||||
unsigned int ena_gpio_flags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue