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

regulator: Add missing kerneldoc

This is only the documentation that the kerneldoc system warns about.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>

authored by

Mark Brown and committed by
Liam Girdwood
c8e7e464 69279fb9

+81 -1
+1
drivers/regulator/core.c
··· 656 656 /** 657 657 * set_machine_constraints - sets regulator constraints 658 658 * @rdev: regulator source 659 + * @constraints: constraints to apply 659 660 * 660 661 * Allows platform initialisation code to define and constrain 661 662 * regulator circuits e.g. valid voltage/current ranges, etc. NOTE:
+39 -1
include/linux/regulator/driver.h
··· 24 24 /** 25 25 * struct regulator_ops - regulator operations. 26 26 * 27 - * This struct describes regulator operations. 27 + * This struct describes regulator operations which can be implemented by 28 + * regulator chip drivers. 29 + * 30 + * @enable: Enable the regulator. 31 + * @disable: Disable the regulator. 32 + * @is_enabled: Return 1 if the reguator is enabled, 0 otherwise. 33 + * 34 + * @set_voltage: Set the voltage for the regulator within the range specified. 35 + * The driver should select the voltage closest to min_uV. 36 + * @get_voltage: Return the currently configured voltage for the regulator. 37 + * 38 + * @set_current: Set the current for the regulator within the range specified. 39 + * The driver should select the current closest to min_uA. 40 + * @get_current: Return the currently configured current for the regulator. 41 + * 42 + * @set_current_limit: Configure a limit for a current-limited regulator. 43 + * @get_current_limit: Get the limit for a current-limited regulator. 44 + * 45 + * @set_mode: Set the operating mode for the regulator. 46 + * @get_mode: Get the current operating mode for the regulator. 47 + * @get_optimum_mode: Get the most efficient operating mode for the regulator 48 + * when running with the specified parameters. 49 + * 50 + * @set_suspend_voltage: Set the voltage for the regulator when the system 51 + * is suspended. 52 + * @set_suspend_enable: Mark the regulator as enabled when the system is 53 + * suspended. 54 + * @set_suspend_disable: Mark the regulator as disabled when the system is 55 + * suspended. 56 + * @set_suspend_mode: Set the operating mode for the regulator when the 57 + * system is suspended. 28 58 */ 29 59 struct regulator_ops { 30 60 ··· 105 75 /** 106 76 * struct regulator_desc - Regulator descriptor 107 77 * 78 + * Each regulator registered with the core is described with a structure of 79 + * this type. 80 + * 81 + * @name: Identifying name for the regulator. 82 + * @id: Numerical identifier for the regulator. 83 + * @ops: Regulator operations table. 84 + * @type: Indicates if the regulator is a voltage or current regulator. 85 + * @owner: Module providing the regulator, used for refcounting. 108 86 */ 109 87 struct regulator_desc { 110 88 const char *name;
+41
include/linux/regulator/machine.h
··· 44 44 * struct regulator_state - regulator state during low power syatem states 45 45 * 46 46 * This describes a regulators state during a system wide low power state. 47 + * 48 + * @uV: Operating voltage during suspend. 49 + * @mode: Operating mode during suspend. 50 + * @enabled: Enabled during suspend. 47 51 */ 48 52 struct regulator_state { 49 53 int uV; /* suspend voltage */ ··· 59 55 * struct regulation_constraints - regulator operating constraints. 60 56 * 61 57 * This struct describes regulator and board/machine specific constraints. 58 + * 59 + * @name: Descriptive name for the constraints, used for display purposes. 60 + * 61 + * @min_uV: Smallest voltage consumers may set. 62 + * @max_uV: Largest voltage consumers may set. 63 + * 64 + * @min_uA: Smallest consumers consumers may set. 65 + * @max_uA: Largest current consumers may set. 66 + * 67 + * @valid_modes_mask: Mask of modes which may be configured by consumers. 68 + * @valid_ops_mask: Operations which may be performed by consumers. 69 + * 70 + * @always_on: Set if the regulator should never be disabled. 71 + * @boot_on: Set if the regulator is enabled when the system is initially 72 + * started. 73 + * @apply_uV: Apply the voltage constraint when initialising. 74 + * 75 + * @input_uV: Input voltage for regulator when supplied by another regulator. 76 + * 77 + * @state_disk: State for regulator when system is suspended in disk mode. 78 + * @state_mem: State for regulator when system is suspended in mem mode. 79 + * @state_standby: State for regulator when system is suspended in standby 80 + * mode. 81 + * @initial_state: Suspend state to set by default. 62 82 */ 63 83 struct regulation_constraints { 64 84 ··· 121 93 * struct regulator_consumer_supply - supply -> device mapping 122 94 * 123 95 * This maps a supply name to a device. 96 + * 97 + * @dev: Device structure for the consumer. 98 + * @supply: Name for the supply. 124 99 */ 125 100 struct regulator_consumer_supply { 126 101 struct device *dev; /* consumer */ ··· 134 103 * struct regulator_init_data - regulator platform initialisation data. 135 104 * 136 105 * Initialisation constraints, our supply and consumers supplies. 106 + * 107 + * @supply_regulator_dev: Parent regulator (if any). 108 + * 109 + * @constraints: Constraints. These must be specified for the regulator to 110 + * be usable. 111 + * @num_consumer_supplies: Number of consumer device supplies. 112 + * @consumer_supplies: Consumer device supply configuration. 113 + * 114 + * @regulator_init: Callback invoked when the regulator has been registered. 115 + * @driver_data: Data passed to regulator_init. 137 116 */ 138 117 struct regulator_init_data { 139 118 struct device *supply_regulator_dev; /* or NULL for LINE */