Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gpio-regulator.h
Go to the documentation of this file.
1 /*
2  * gpio-regulator.h
3  *
4  * Copyright 2011 Heiko Stuebner <[email protected]>
5  *
6  * based on fixed.h
7  *
8  * Copyright 2008 Wolfson Microelectronics PLC.
9  *
10  * Author: Mark Brown <[email protected]>
11  *
12  * Copyright (c) 2009 Nokia Corporation
13  * Roger Quadros <[email protected]>
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License as
17  * published by the Free Software Foundation; either version 2 of the
18  * License, or (at your option) any later version.
19  */
20 
21 #ifndef __REGULATOR_GPIO_H
22 #define __REGULATOR_GPIO_H
23 
24 struct regulator_init_data;
25 
26 enum regulator_type;
27 
40  int value;
41  int gpios;
42 };
43 
70  const char *supply_name;
71 
73  unsigned enable_high:1;
74  unsigned enabled_at_boot:1;
75  unsigned startup_delay;
76 
77  struct gpio *gpios;
78  int nr_gpios;
79 
81  int nr_states;
82 
85 };
86 
87 #endif