blob: 1119c511d05cae69515337a8c3aa4e7e5ba1d94f [file] [log] [blame]
Michael Bohan9b7ac512012-02-24 14:42:44 -08001/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __STUB_REGULATOR_H__
14#define __STUB_REGULATOR_H__
15
16#include <linux/regulator/machine.h>
17
18#define STUB_REGULATOR_DRIVER_NAME "stub-regulator"
19
20/**
21 * struct stub_regulator_pdata - stub regulator device data
22 * @init_data: regulator constraints
23 * @hpm_min_load: minimum load in uA that will result in the regulator
24 * being set to high power mode
25 * @system_uA: current drawn from regulator not accounted for by any
26 * regulator framework consumer
27 */
28struct stub_regulator_pdata {
29 struct regulator_init_data init_data;
30 int hpm_min_load;
31 int system_uA;
32};
33#endif