diff options
author | Mark Brown <broonie@kernel.org> | 2018-01-26 17:40:03 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-26 17:40:03 +0000 |
commit | 285c22de377dd6895af30af6272cc7778cee36a7 (patch) | |
tree | 0242402441f35cf83afea2c7054d5174ae12fc79 /drivers/regulator/internal.h | |
parent | 3d67fe950707a930664c5673ecc026f1bb497136 (diff) | |
parent | f7efad10b5c492892b1e5decf5d3ebb29fa5c9af (diff) |
Merge branch 'topic/suspend' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-core
Diffstat (limited to 'drivers/regulator/internal.h')
-rw-r--r-- | drivers/regulator/internal.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/regulator/internal.h b/drivers/regulator/internal.h index 2f3218be5b8d..abfd56e8c78a 100644 --- a/drivers/regulator/internal.h +++ b/drivers/regulator/internal.h @@ -16,10 +16,25 @@ #ifndef __REGULATOR_INTERNAL_H #define __REGULATOR_INTERNAL_H +#include <linux/suspend.h> + +#define REGULATOR_STATES_NUM (PM_SUSPEND_MAX + 1) + +struct regulator_voltage { + int min_uV; + int max_uV; +}; + /* * struct regulator * * One for each consumer device. + * @voltage - a voltage array for each state of runtime, i.e.: + * PM_SUSPEND_ON + * PM_SUSPEND_TO_IDLE + * PM_SUSPEND_STANDBY + * PM_SUSPEND_MEM + * PM_SUSPEND_MAX */ struct regulator { struct device *dev; @@ -27,8 +42,7 @@ struct regulator { unsigned int always_on:1; unsigned int bypass:1; int uA_load; - int min_uV; - int max_uV; + struct regulator_voltage voltage[REGULATOR_STATES_NUM]; const char *supply_name; struct device_attribute dev_attr; struct regulator_dev *rdev; |