]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Add regulator support
authorAlan Tull <atull@opensource.altera.com>
Wed, 15 Oct 2014 18:55:09 +0000 (13:55 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 1 Dec 2014 04:13:13 +0000 (20:13 -0800)
commite3ff6d9644c38c11254538f83ce1c07ab0626152
tree9d06aeb930ba86bfcc68ef659d392f98a263aff6
parent4e26d786863b1355ce92910d9f24b805bbb14599
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>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c
include/linux/i2c/pmbus.h