diff options
author | Alan Tull <atull@opensource.altera.com> | 2014-10-15 22:55:09 +0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-12-01 07:13:13 +0300 |
commit | ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7 (patch) | |
tree | 9d06aeb930ba86bfcc68ef659d392f98a263aff6 /include/linux/i2c | |
parent | 11c119986f2700e9daca0d795fbe84a988939655 (diff) | |
download | linux-ddbb4db4ced1ba784fcd3500179a7291b6c5d7b7.tar.xz |
hwmon: (pmbus) Add regulator support
Add support for simple on/off control of each channel.
To add regulator support, the pmbus part driver needs to add
regulator_desc information and number of regulators to its
pmbus_driver_info struct.
regulator_desc can be declared using default macro for a
regulator (PMBUS_REGULATOR) that is in pmbus.h
The regulator_init_data can be initialized from either
platform data or the device tree.
Signed-off-by: Alan Tull <atull@opensource.altera.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/pmbus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/i2c/pmbus.h b/include/linux/i2c/pmbus.h index 69280db02c41..ee3c2aba2a8e 100644 --- a/include/linux/i2c/pmbus.h +++ b/include/linux/i2c/pmbus.h @@ -40,6 +40,10 @@ struct pmbus_platform_data { u32 flags; /* Device specific flags */ + + /* regulator support */ + int num_regulators; + struct regulator_init_data *reg_init_data; }; #endif /* _PMBUS_H_ */ |