Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __REGULATOR_PLATFORM_CONSUMER_H_
0003 #define __REGULATOR_PLATFORM_CONSUMER_H_
0004 
0005 struct regulator_consumer_supply;
0006 
0007 /**
0008  * struct regulator_userspace_consumer_data - line consumer
0009  * initialisation data.
0010  *
0011  * @name: Name for the consumer line
0012  * @num_supplies: Number of supplies feeding the line
0013  * @supplies: Supplies configuration.
0014  * @init_on: Set if the regulators supplying the line should be
0015  *           enabled during initialisation
0016  */
0017 struct regulator_userspace_consumer_data {
0018     const char *name;
0019 
0020     int num_supplies;
0021     struct regulator_bulk_data *supplies;
0022 
0023     bool init_on;
0024 };
0025 
0026 #endif /* __REGULATOR_PLATFORM_CONSUMER_H_ */