]>
Commit | Line | Data |
---|---|---|
d006af40 AF |
1 | From 42d8b74383b670412107c943efd2fec46aa04158 Mon Sep 17 00:00:00 2001 |
2 | From: Robert Nelson <robertcnelson@gmail.com> | |
3 | Date: Sat, 1 Jun 2013 16:32:46 -0500 | |
4 | Subject: [PATCH 07/10] Revert "regulator: twl: Remove TWL6030_FIXED_RESOURCE" | |
5 | ||
6 | This reverts commit d1924519fe1dada0cfd9a228bf2ff1ea15840c84. | |
7 | ||
8 | Signed-off-by: Robert Nelson <robertcnelson@gmail.com> | |
9 | --- | |
10 | drivers/regulator/twl-regulator.c | 13 +++++++++++++ | |
11 | 1 file changed, 13 insertions(+) | |
12 | ||
13 | diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c | |
14 | index fb6e67d..7ce7edf 100644 | |
15 | --- a/drivers/regulator/twl-regulator.c | |
16 | +++ b/drivers/regulator/twl-regulator.c | |
17 | @@ -933,6 +933,19 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \ | |
18 | }, \ | |
19 | } | |
20 | ||
21 | +#define TWL6030_FIXED_RESOURCE(label, offset, turnon_delay) \ | |
22 | +static struct twlreg_info TWLRES_INFO_##label = { \ | |
23 | + .base = offset, \ | |
24 | + .desc = { \ | |
25 | + .name = #label, \ | |
26 | + .id = TWL6030_REG_##label, \ | |
27 | + .ops = &twl6030_fixed_resource, \ | |
28 | + .type = REGULATOR_VOLTAGE, \ | |
29 | + .owner = THIS_MODULE, \ | |
30 | + .enable_time = turnon_delay, \ | |
31 | + }, \ | |
32 | + } | |
33 | + | |
34 | #define TWL6025_ADJUSTABLE_SMPS(label, offset) \ | |
35 | static const struct twlreg_info TWLSMPS_INFO_##label = { \ | |
36 | .base = offset, \ | |
37 | -- | |
38 | 1.7.10.4 | |
39 |