Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: Clarify documentation for regulator-regulator supplies

The mechanism used for connecting regulators together when one regulator
supplies another wasn't clear as the names being used weren't really tied
together well.

Reported-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

+9 -2
+9 -2
Documentation/power/regulator/machine.txt
··· 43 43 44 44 static struct regulator_init_data regulator1_data = { 45 45 .constraints = { 46 + .name = "Regulator-1", 46 47 .min_uV = 3300000, 47 48 .max_uV = 3300000, 48 49 .valid_modes_mask = REGULATOR_MODE_NORMAL, ··· 52 51 .consumer_supplies = regulator1_consumers, 53 52 }; 54 53 54 + The name field should be set to something that is usefully descriptive 55 + for the board for configuration of supplies for other regulators and 56 + for use in logging and other diagnostic output. Normally the name 57 + used for the supply rail in the schematic is a good choice. If no 58 + name is provided then the subsystem will choose one. 59 + 55 60 Regulator-1 supplies power to Regulator-2. This relationship must be registered 56 61 with the core so that Regulator-1 is also enabled when Consumer A enables its 57 62 supply (Regulator-2). The supply regulator is set by the supply_regulator 58 - field below:- 63 + field below and co:- 59 64 60 65 static struct regulator_init_data regulator2_data = { 61 - .supply_regulator = "regulator_name", 66 + .supply_regulator = "Regulator-1", 62 67 .constraints = { 63 68 .min_uV = 1800000, 64 69 .max_uV = 2000000,