regulator: of: Pass the regulator description in the match table
Drivers can use the of_regulator_match() function to parse the regulator init_data from DT. A match table is used to specify the name of the node containing the regulators, the device node and to return the init_data to the caller. But also the static regulator descriptor is needed to correctly extract some DT properties like the regulator initial and suspend modes. Use the match table to pass that information. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:

committed by
Mark Brown

parent
072e78b12b
commit
75d6b2faf7
@@ -13,6 +13,7 @@ struct of_regulator_match {
|
||||
void *driver_data;
|
||||
struct regulator_init_data *init_data;
|
||||
struct device_node *of_node;
|
||||
const struct regulator_desc *desc;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
|
Reference in New Issue
Block a user