blob: b5dba0628951694a09f6f08a9b684c874b2bf50b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Mike Rapoport1d98ccc2009-04-26 16:49:39 +03002#ifndef __REGULATOR_PLATFORM_CONSUMER_H_
3#define __REGULATOR_PLATFORM_CONSUMER_H_
4
5struct regulator_consumer_supply;
6
7/**
8 * struct regulator_userspace_consumer_data - line consumer
9 * initialisation data.
10 *
11 * @name: Name for the consumer line
12 * @num_supplies: Number of supplies feeding the line
13 * @supplies: Supplies configuration.
14 * @init_on: Set if the regulators supplying the line should be
15 * enabled during initialisation
16 */
17struct regulator_userspace_consumer_data {
18 const char *name;
19
20 int num_supplies;
21 struct regulator_bulk_data *supplies;
22
23 bool init_on;
24};
25
26#endif /* __REGULATOR_PLATFORM_CONSUMER_H_ */